Creates a debounced function that delays invoking the provided function until after the specified wait time has elapsed since the last time the debounced function was invoked.
The function to debounce.
The number of milliseconds to delay.
If true, trigger the function on the leading edge instead of the trailing.
true
A new debounced function.
Rest
Creates a debounced function that delays invoking the provided function until after the specified wait time has elapsed since the last time the debounced function was invoked.