🧚decorator
takes a function and alters/extends its behavior. 🚧 under construction
(function) alters/extends the behavior of another function.
saveCallHistory(f) - make function save its call history ("arguments").
memoize(f) - make function "remember" its "return values".
delay(f, s) - delay the execution of a function by s seconds.
debounce(f, s) - debounce function calls for s seconds.
throttle(f, s) - throttle function calls by every s seconds.
debounce vs. throttle - difference between the two.
Last updated