TypeScript code snippet – How to break out of setinterval?
var timerId = setInterval(function(){ if(window.document.drops.isFinished()){ clearInterval(timerId); } },1000);
var timerId = setInterval(function(){ if(window.document.drops.isFinished()){ clearInterval(timerId); } },1000);