throttle

Public Function

Throttle a function.

Example
const A = throttle(myFunction, 1000)
Parameters
NameDescription

func

T

limit

number
Returns
(...args: Parameters<T>) => ReturnType<T>
References

Parameters, ReturnType

Edit this page
Last edited on 12 June 2023
structuredClone_2