Methods
(static) throttle(func, timeFrame) → {function}
Create a new function that limits calls to func to once every given timeframe.
Parameters:
Name | Type | Description |
---|---|---|
func |
function | the function to call in throttled mode |
timeFrame |
number | timeframe in ms |
- Source:
- See:
Returns:
throttled version of the function
- Type
- function