Ensure customizer results are respected by _.isEqual.

This commit is contained in:
jdalton
2015-05-03 22:57:45 -07:00
parent ee182df533
commit d825937411
2 changed files with 19 additions and 5 deletions

View File

@@ -3928,7 +3928,10 @@
othValue = other[index],
result = customizer ? customizer(isLoose ? othValue : arrValue, isLoose ? arrValue : othValue, index) : undefined;
if (result !== undefined && !result) {
if (result !== undefined) {
if (result) {
continue;
}
return false;
}
// Recursively compare arrays (susceptible to call stack limits).