function clearTimeout
Jump to headingclearTimeout(id?: number): void
Cancels a scheduled action initiated by setTimeout()
const id = setTimeout(() => {console.log('hello');}, 500);
// ...
clearTimeout(id);
Parameters Jump to heading
optional
Jump to headingid: number
Return Type Jump to heading
void