A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
A function to be executed after delay milliseconds. The this
context and
all arguments are passed through, as-is, to callback
when the
debounced-function is executed.
Optional
options: DebounceOptionsAn object to configure options.
Generated using TypeDoc
Debounce execution of a function. Debouncing, unlike throttling, guarantees that a function is only executed a single time, either at the very beginning of a series of calls, or at the very end.
Returns
A new, debounced function.