The function to throttle.
How long to wait before calling the function can be called again. Defaults to 50
Optionalindex?: 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.
Optionalleading?: 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.
Optionalpromisify?: TPromisifyWhether to promisify the throttled function.
Optionalqueue?: DebounceQueue | TQueuedWhether to use queues, or a queues object to use.
Optionaltrailing?: 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.