Checking whether clearInterval has been called?
The return value of setInterval is just a unique id you use to pass back to clearInterval. It’s not a structured object with any additional information, nor does it get set to null when you call clearTimeout.