From 9841e6aa4c1b7e54c35a04ba621406892c332a60 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 17 Aug 2016 11:40:52 -0700 Subject: [PATCH] Use `cacheHas` in `equalArrays`. --- lodash.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lodash.js b/lodash.js index 7816055c6..19ab64263 100644 --- a/lodash.js +++ b/lodash.js @@ -1024,7 +1024,7 @@ } /** - * Checks if a cache value for `key` exists. + * Checks if a `cache` value for `key` exists. * * @private * @param {Object} cache The cache to query. @@ -5437,9 +5437,9 @@ // Recursively compare arrays (susceptible to call stack limits). if (seen) { if (!arraySome(other, function(othValue, othIndex) { - if (!seen.has(othIndex) && + if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) { - return seen.add(othIndex); + return seen.push(othIndex); } })) { result = false;