Function Helpers
Utility functions for working with function operations.
Functions
Section titled “Functions”| Function | Description |
|---|---|
debounce | Creates a debounced function that delays invoking func until after delay milliseconds have elapsed since the last tim… |
identity | Returns the given value unchanged Useful as a default transform, in function composition, or as a placeholder mapper. |
memoize | Returns a memoized version of the function that caches results |
noop | A no-operation function that does nothing and returns undefined Useful as a default callback, placeholder, or to e… |
returnOrThrowError | Return a value or throw an error if null or undefined. |
throttle | Creates a throttled function that only invokes func at most once per every wait milliseconds |