Preparing search index...

    A handle for a timer. You can create a timeout using setTimeout.

        const timer = setTimeout(() => {
    console.log('Deferred work executed after 1 second');
    }, 1000);
    console.log(`Timer scheduled: ${timer}`);
    const cancelled = setTimeout(() => {
    console.log('This will not run');
    }, 5000);
    clearTimeout(cancelled);

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean