Function Factory
Higher-order functions that wrap your functions with extra behavior.
defineDebounceFn
Debounce: only the last call within delay runs.
defineThrottleFn
Throttle: at most one call per delay window.
defineOnceFn
The wrapped function can only be executed once.
defineSinglePromiseFn
Concurrent calls share a single in-flight promise.
Demo
Click fast and compare raw vs debounced vs throttled call counts:
Loading...
