mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +00:00
Bump to v4.16.0.
This commit is contained in:
@@ -60,14 +60,14 @@ define(['./_MapCache'], function(MapCache) {
|
||||
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;
|
||||
|
||||
return memoize;
|
||||
|
||||
Reference in New Issue
Block a user