@avcs/memo
v1.0.4
Published
memoize map
Downloads
9
Readme
Micro / Mini / Map Memo
A much much simpler memorizing utility
Usage
import memo from '@avcs/memo';
const memorizedFunction = memo(originalFunction, { onlyOnce?: boolean })
// optionally you can do this
memorizedFunction.reset()
Features
- Supports any number of arguments
- Arguments and return values can be literally anything and everything
- Works by reference, so does not support
different objects/arrays/functions
withsame values