Bump to v4.16.0.

This commit is contained in:
John-David Dalton
2016-09-17 22:37:40 -07:00
parent a06bf83085
commit 9e23f5441b
108 changed files with 1230 additions and 816 deletions

View File

@@ -60,14 +60,14 @@ function memoize(func, resolver) {
return cache.get(key);
}
var result = func.apply(this, args);
memoized.cache = cache.set(key, result);
memoized.cache = cache.set(key, result) || cache;
return result;
};
memoized.cache = new (memoize.Cache || MapCache);
return memoized;
}
// Assign cache to `_.memoize`.
// Expose `MapCache`.
memoize.Cache = MapCache;
module.exports = memoize;