function setInterval
Jump to headingsetInterval(cb: (...args: any[]) => void,delay?: number,...args: any[],): number
Repeatedly calls a function , with a fixed time delay between each call.
// Outputs 'hello' to the console every 500ms
setInterval(() => { console.log('hello'); }, 500);
Parameters Jump to heading
Jump to headingcb: (...args: any[]) => void
optional
Jump to headingdelay: number
Jump to heading<span>...args</span>: any[]
Return Type Jump to heading
number