Skip to main content
Version: Next

clearTimeout

function clearTimeout(id): void;

Cancel a timeout previously established by calling setTimeout.

Parameters

ParameterTypeDescription

id

number

The ID (integer) which identifies the timer.

Returns

void

Throws

Throws TypeError if ID is not an integer.