function setTimeout
Jump to headingsetTimeout(cb: (...args: any[]) => void,delay?: number,...args: any[],): number
Sets a timer which executes a function once after the delay (in milliseconds) elapses. Returns an id which may be used to cancel the timeout.
setTimeout(() => { 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