throttle
Creates a throttled function that only invokes func at most once per every wait milliseconds
Available since v1.9.0
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
func | function | The function to throttle |
wait | number | The number of milliseconds to throttle invocations to |
Returns
Section titled “Returns”function — The throttled function
Examples
Section titled “Examples”Throttle rapid calls
Section titled “Throttle rapid calls”The throttled function is invoked at most once per wait period.
