• debounce function.

    Parameters

    • callback: (() => void)

      Function to be delayed when called.

        • (): void
        • Returns void

    • timer: number = 1000

      The time to wait before calling the callback function.

    Returns (() => void)

    • Function that clears the current timeout.
      • (): void
      • Returns void

    Remarks

    debounce represents a function that can be used to delay a function call.

Generated using TypeDoc