W3cubDocs

/Deno

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

Parameters

id?: number optional

Return Type

void

© 2018–2021 the Deno authors
https://doc.deno.land/deno/stable/~/clearTimeout