mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Add strict equal fast path for object comparisons in equalObjects.
This commit is contained in:
@@ -3883,7 +3883,10 @@
|
|||||||
: customizer(objValue, othValue, key, object, other, stackA, stackB);
|
: customizer(objValue, othValue, key, object, other, stackA, stackB);
|
||||||
}
|
}
|
||||||
// Recursively compare objects (susceptible to call stack limits).
|
// Recursively compare objects (susceptible to call stack limits).
|
||||||
if (!(result === undefined ? equalFunc(objValue, othValue, customizer, bitmask, stackA, stackB) : result)) {
|
if (!(result === undefined
|
||||||
|
? (objValue === othValue || equalFunc(objValue, othValue, customizer, bitmask, stackA, stackB))
|
||||||
|
: result
|
||||||
|
)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
skipCtor || (skipCtor = key == 'constructor');
|
skipCtor || (skipCtor = key == 'constructor');
|
||||||
|
|||||||
Reference in New Issue
Block a user