The function to throttle.
How long to wait before calling the function can be called again. Defaults to 50
Optional
index?: TQueued extends true ? number | ((...args: Parameters<T>) => number) : undefinedThe index number of the argument that will be used as the key to the queues if queues are enabled.
Optional
leading?: booleanWhether the first call is called immediately. Note that if trailing and leading are both set to true, trailing will only fire if there were multiple calls.
Defaults to true.
Optional
promisify?: TPromisifyWhether to promisify the throttled function.
Optional
queue?: DebounceQueue | TQueuedWhether to use queues, or a queues object to use.
Optional
trailing?: booleanWhether the call is delayed until the end of the timeout. Defaults to true.
Returns a throttled function.
Has all the same options (including debounce queues) as debounce.