mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 07:17:50 +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);
|
||||
}
|
||||
// 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;
|
||||
}
|
||||
skipCtor || (skipCtor = key == 'constructor');
|
||||
|
||||
Reference in New Issue
Block a user