Exports functions to memoize functions with / without selectors.
See the *.test.ts
files.
shallowly | deeply | |
---|---|---|
cache all args | memoize |
deepMemoize |
cache only previous args | memoizeOnce |
deepMemoizeOnce |
Selector is a function to select arbitrary properties from any objects. Selected properties by selector are used as arguments for memoized function.
const selector = obj => [obj.foo, obj.bar]
*WithSelector
are available to memoize with selector.