Methods
(static) debounce(func, wait, immediateopt) → {function}
Debounces a function that is called often to run computation only after given x milliseconds.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
func |
function | the expensive computation fn |
|
wait |
number | timeout in ms |
|
immediate |
boolean |
<optional> |
run immediate |
- Source:
- See:
Returns:
the debounced function
- Type
- function