simple-memo
0.1.0 • Public • Published simple-memo
Simple memoization of function executions.
var memoize = require("simple-memo");
var wrapped = memoize(function (a, b) {
return a + b;
});
wrapped("foo", "bar");
wrapped("foo", "bar");
You can customize the internal cache keys by passing a hasher callback
to the exported function, but I'm not sure why you'd need to.
Dependencies (0)
Dev Dependencies (5)
Package Sidebar
Install
Weekly Downloads