mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +00:00
Remove cache.clear existance check.
This commit is contained in:
@@ -10341,7 +10341,7 @@
|
|||||||
return cache.get(key);
|
return cache.get(key);
|
||||||
}
|
}
|
||||||
var result = func.apply(this, args);
|
var result = func.apply(this, args);
|
||||||
if (cache.clear && cache.size === MAX_MEMOIZE_SIZE) {
|
if (cache.size === MAX_MEMOIZE_SIZE) {
|
||||||
cache = cache.clear() || cache;
|
cache = cache.clear() || cache;
|
||||||
}
|
}
|
||||||
memoized.cache = cache.set(key, result);
|
memoized.cache = cache.set(key, result);
|
||||||
|
|||||||
Reference in New Issue
Block a user