Cancels a timed, repeating action which was previously established by a call to
- The identifier of the repeated action you want to cancel. This ID was returned by the corresponding call to
It's worth noting that the pool of IDs used by
setTimeout() are shared, which means you can technically use
clearTimeout() interchangeably. However, for clarity, you should avoid doing so.
|WHATWG HTML Living Standard
The definition of 'clearInterval()' in that specification.