memoize
Wrap a function into a memoized version of itself. Multiple calls for the same function
will return the same memoized function - thus enabling a shared cache of results.
const memoizedItemSearch = memoize(searchItems);
Wrap a function into a memoized version of itself. Multiple calls for the same function
will return the same memoized function - thus enabling a shared cache of results.
const memoizedItemSearch = memoize(searchItems);
Parameters
Returns
any
Function defined in common/src/utils/memoize.ts:23