Skip to content

Latest commit

 

History

History
22 lines (11 loc) · 352 Bytes

README.md

File metadata and controls

22 lines (11 loc) · 352 Bytes

memoize

underscore's memoize

Installation

$ npm install nathan7/memoize

or

$ component install nathan7/memoize

API

memoize(fn, resolver)

Returns a memoized function. The resolver is used to turn the arguments into a string key. The default resolution behaviour just uses the first argument as key.

License

MIT