@avcs/memo
v1.0.4
Published
memoize map
Downloads
13
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