clearInterval
clearInterval(intervalID?: number): voidThe clearInterval() method cancels a timed, repeating action which was previously established by a call to setInterval(). If the parameter provided does not identify a previously established action, this method does nothing.
See also
Parameters
- intervalID: numberoptional
The identifier of the repeated action you want to cancel. This ID was returned by the corresponding call to setInterval().
Returns
void