• Debounces a function to prevent it from being called too frequently.

    Type Parameters

    • T extends unknown[]

    Parameters

    • cb: ((...args) => void)

      The function to be debounced.

        • (...args): void
        • Parameters

          • Rest ...args: T

          Returns void

    • delay: number = 1000

      The delay in milliseconds.

    Returns ((...args) => void)

    A debounced function.

      • (...args): void
      • Parameters

        • Rest ...args: T

        Returns void

Generated using TypeDoc