i have a setInterval() function which is used as follows
setInterval(function(){
if(window.document.drops.isFinished()){
//I want to exit the setInterval() on executing this if
}
},1000);
or tell me what is the method to exit.(In java we use System.exit(0))