Debounces repeated requests for a function call and its actual one-time execution. While debouncing, a function can only execute once, either before or after a given period of time. Once the debounce period ends, another function execution can occur.
Throttle repeated attempts at execution by caching return values from the function. When under the throttle duration, the last cached value is returned. Once the throttle duration ends, the original function is executed and its return value cached again
General purpose higher-order functions such as
debounce
andthrottle
Author
studioKeywi