clearTimeout

Cancels a scheduled action initiated by setTimeout()

const id = setTimeout(() => {console.log('hello');}, 500);
// ...
clearTimeout(id);
function clearTimeout(id?: number): void;
§
clearTimeout(id?: number): void
[src]

§Parameters

§
id?: number optional
[src]

§Return Type