Skip to main content

Function Helpers

Utility functions for working with functions.

Functions

FunctionDescription
debounceCreates a debounced function that delays invoking func until after delay milliseconds have elapsed since the last time the debounced function was invoked
isDefinedAndNotNullCheck if a given value of unknown data type is defined and not null
memoizeReturns a memoized version of the function that caches results
returnOrThrowErrorReturn a value or throw an error is null or undefined.
throttleCreates a throttled function that only invokes func at most once per every wait milliseconds