Documentation / @ripl/utilities / functionMemoize
Function: functionMemoize() ​
functionMemoize<
TValue,TKey>(value,resolver?):MemoizedFunction<TValue,TKey>
Defined in: function.ts:59
Memoizes a function by caching results keyed by the resolver (defaults to the first argument).
Type Parameters ​
| Type Parameter | Default type |
|---|---|
TValue extends AnyFunction | - |
TKey | Parameters<TValue>[0] |
Parameters ​
| Parameter | Type |
|---|---|
value | TValue |
resolver | MemoizeResolver<TValue, TKey> |
Returns ​
MemoizedFunction<TValue, TKey>