I know how to stop a setInterval the normal way:
var intervalId = setInterval(myFunction, 1000);
clearInterval(intervalId);
What if I didn't save a reference to the intervalID? Is there any way to look up all the intervalIDs? Or clear all intervals?