Skip to content

Function Helpers

Utility functions for working with function operations.

FunctionDescription
debounceCreates a debounced function that delays invoking func until after delay milliseconds have elapsed since the last tim…
identityReturns the given value unchanged Useful as a default transform, in function composition, or as a placeholder mapper.
memoizeReturns a memoized version of the function that caches results
noopA no-operation function that does nothing and returns undefined Useful as a default callback, placeholder, or to e…
returnOrThrowErrorReturn a value or throw an error if null or undefined.
throttleCreates a throttled function that only invokes func at most once per every wait milliseconds