Skip to content

Instantly share code, notes, and snippets.

@dondevi
Created March 3, 2019 03:02
Show Gist options
  • Save dondevi/37a03d2c27ee775f26d2eebf9af9bfa8 to your computer and use it in GitHub Desktop.
Save dondevi/37a03d2c27ee775f26d2eebf9af9bfa8 to your computer and use it in GitHub Desktop.
function clearAllInterval () {
let id = setInterval(function () {}, 9999);
while (id > 0) { clearInterval(id--); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment