Returns a debounced function that delays invocation until the function has reached a steady state for a defined delay period.
The function to debounce.
The number of milliseconds to wait before calling the function.
The debounced function. cancel() can be called on the function to cancel any pending calls, and flush() can be called to immediately call the function.
cancel()
flush()
Returns a debounced function that delays invocation until the function has reached a steady state for a defined delay period.