• Creates a debounced version for a given function in a given delay (in ms).

    Type Parameters

    • F extends Source

      is the shape of the function to debounce.

    Parameters

    • func: F

      the original function

    • delay: number

      the delay in milliseconds (ms)

    Returns Debounced<F>

    the debounced function