Remove cache.clear existance check.

This commit is contained in:
John-David Dalton
2016-08-28 00:53:31 -07:00
parent 1bbb7c9d3b
commit f627b25e9d

View File

@@ -10341,7 +10341,7 @@
return cache.get(key);
}
var result = func.apply(this, args);
if (cache.clear && cache.size === MAX_MEMOIZE_SIZE) {
if (cache.size === MAX_MEMOIZE_SIZE) {
cache = cache.clear() || cache;
}
memoized.cache = cache.set(key, result);