Optimize baseIsEqual.

This commit is contained in:
jdalton
2015-05-22 22:08:29 -07:00
parent 87c610beaa
commit 5f845aa6f8

View File

@@ -2285,7 +2285,7 @@
if (value === other) {
return true;
}
if (value == null || other == null || (!isObject(value) && !isObject(other))) {
if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) {
return value !== value && other !== other;
}
return baseIsEqualDeep(value, other, baseIsEqual, customizer, isLoose, stackA, stackB);