Skip to content

MemoizeOptions

MemoizeOptions<A> = object

Defined in: packages/core/src/function/memoize.ts:3

A extends unknown[]

optional keyOf?: (args) => unknown

Defined in: packages/core/src/function/memoize.ts:17

A function that generates a cache key from the arguments passed to the memoized function.

By default, the first argument is used as the cache key.

Note: If the first argument is not a primitive value, you may want to provide a custom keyOf function that returns a primitive value to avoid unexpected behavior.

A

The arguments passed to the memoized function.

unknown

A primitive value that can be used as a cache key.