The function the debounce.
Time in milliseconds
The debounced function.
A function that does nothing.
Any arguments.
To throttle a function means to ensure that the function is called at most once in a specified time period (for instance, once every 10 seconds). This means throttling will prevent a function from running if it has run “recently”.
Throttling also ensures a function is run regularly at a fixed rate.
The function the throttle.
Time in milliseconds
The throttled function.
Generated using TypeDoc
The debounced function will ignore all calls to it until the calls have stopped for a specified time period. Only then will it call the original function.
Debouncing forces a function to wait a certain amount of time before running again. In other words, it limits the rate at which a function gets invoked.