Answers for "typescript clearinterval not working"

0

typescript clearinterval not working

// setInterval returns an ID which you then use to clear the interval.

let intervalId = setInterval(() => {
  // do something
  clearInterval(intervalId);
}, 500);
Posted by: Guest on July-08-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language