Skip to main content

CommonDebounce

Callable

  • CommonDebounce(func: Function): Function

  • Creates a debounced wrapper for the provided function with the provided wait time. The wrapped function will not be called as long as the debounced function continues to be called. If the debounced function is called, and then not called again within the wait time, the wrapped function will be called.


    Parameters

    • func: Function

      The function to debounce

    Returns Function

    • A debounced version of the provided function