Methods
# static throttle(func, wait, options) → {function}
Throttles a function, ensuring that it can only be called once per `wait` milliseconds.
Parameters:
Name | Type | Description |
---|---|---|
func |
function
|
The function to throttle. |
wait |
number
|
The number of milliseconds to wait between function invocations. |
options |
ThrottleOptions
|
Optional configuration for the throttle. |
A throttled version of the original function.
function