Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript clear all intervals

var interval_id = window.setInterval(()=>{}, 99999);
for (var i = 0; i < interval_id; i++)
	window.clearInterval(i);
Comment

clear all intervals js

// Get a reference to the last interval + 1
const interval_id = window.setInterval(function(){}, Number.MAX_SAFE_INTEGER);

// Clear any timeout/interval up to that id
for (let i = 1; i < interval_id; i++) {
  window.clearInterval(i);
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: stateprovider.js react 
Javascript :: directional light three js 
Javascript :: Javascript - check if div contains a word? - Stack Overflow 
Javascript :: react native button 
Javascript :: regex char any quantity 
Javascript :: v-select on change 
Javascript :: Swap values with array destructuring 
Javascript :: how to pass an object directly to formdata in javascript 
Javascript :: make something visible js 
Javascript :: jquery first child 
Javascript :: react lottie player on hover 
Javascript :: javascript search in object array 
Javascript :: set a timer for 10 minutes 
Javascript :: js open file dialog 
Javascript :: how to play music in js 
Javascript :: how to add sticky function in javascript 
Javascript :: node.js read json file 
Javascript :: check if json obj exists 
Javascript :: javascript iterate array 
Javascript :: motify react native 
Javascript :: async fetch api call 
Javascript :: .style.display 
Javascript :: javascript prepend string to array 
Javascript :: javascript get timestamp 
Javascript :: jquery find child of parent sibling 
Javascript :: express get url parameters 
Javascript :: javascript delete key from object 
Javascript :: array sort by alphabetical javascript 
Javascript :: redirect to page in javascript 
Javascript :: color p5js 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =