debounce(func: Function<any>, wait: number, opts??: { maxWait?: number; }): Function
Creates a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked. Subsequent calls to the debounced function return the result of the last successful invocation. Provide options to set the maxWait milliseconds, regardless of when the function was last invoked.
Creates a debounced function that delays invoking
func
until afterwait
milliseconds have elapsed since the last time the debounced function was invoked. Subsequent calls to the debounced function return the result of the last successful invocation. Provide options to set themaxWait
milliseconds, regardless of when the function was last invoked.Returns
Returns the new debounced function.