Eslint cleanup for shared modules.

This commit is contained in:
Michał Lipiński
2017-02-18 23:31:42 +01:00
parent 27644a7bd5
commit b4e815c04b
6 changed files with 12 additions and 10 deletions

View File

@@ -60,11 +60,11 @@ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
// Recursively compare arrays (susceptible to call stack limits).
if (seen) {
if (!arraySome(other, (othValue, othIndex) => {
if (!cacheHas(seen, othIndex) &&
(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
return seen.push(othIndex)
}
})) {
if (!cacheHas(seen, othIndex) &&
(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
return seen.push(othIndex)
}
})) {
result = false
break
}