Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.deno.shared_globals.d.ts>clearInterval

A modern runtime for JavaScript and TypeScript.
Latest
function clearInterval
import { clearInterval } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.shared_globals.d.ts";

Cancels a timed, repeating action which was previously started by a call to setInterval()

const id = setInterval(() => {console.log('hello');}, 500);
// ...
clearInterval(id);

Parameters

optional
id: number