• Debounce function to delay the execution of a function.

    Type Parameters

    • F extends ((...args) => void)

    Parameters

    • func: F

      The function to debounce.

    • delay: number

      The delay in milliseconds.

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

    The debounced function.

      • (...args): void
      • Parameters

        • Rest ...args: Parameters<F>

        Returns void