mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 20:07:49 +00:00
Use cacheHas in equalArrays.
This commit is contained in:
@@ -1024,7 +1024,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if a cache value for `key` exists.
|
* Checks if a `cache` value for `key` exists.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Object} cache The cache to query.
|
* @param {Object} cache The cache to query.
|
||||||
@@ -5437,9 +5437,9 @@
|
|||||||
// Recursively compare arrays (susceptible to call stack limits).
|
// Recursively compare arrays (susceptible to call stack limits).
|
||||||
if (seen) {
|
if (seen) {
|
||||||
if (!arraySome(other, function(othValue, othIndex) {
|
if (!arraySome(other, function(othValue, othIndex) {
|
||||||
if (!seen.has(othIndex) &&
|
if (!cacheHas(seen, othIndex) &&
|
||||||
(arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) {
|
(arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) {
|
||||||
return seen.add(othIndex);
|
return seen.push(othIndex);
|
||||||
}
|
}
|
||||||
})) {
|
})) {
|
||||||
result = false;
|
result = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user