mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 11:57:49 +00:00
Optimize baseIsEqual.
This commit is contained in:
@@ -2285,7 +2285,7 @@
|
|||||||
if (value === other) {
|
if (value === other) {
|
||||||
return true;
|
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 value !== value && other !== other;
|
||||||
}
|
}
|
||||||
return baseIsEqualDeep(value, other, baseIsEqual, customizer, isLoose, stackA, stackB);
|
return baseIsEqualDeep(value, other, baseIsEqual, customizer, isLoose, stackA, stackB);
|
||||||
|
|||||||
Reference in New Issue
Block a user