mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Cleanup symbolTag case in equalByTag.
This commit is contained in:
@@ -4798,7 +4798,9 @@
|
||||
return equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask | UNORDERED_COMPARE_FLAG, stack);
|
||||
|
||||
case symbolTag:
|
||||
return !!symbolValueOf && (symbolValueOf.call(object) == symbolValueOf.call(other));
|
||||
if (symbolValueOf) {
|
||||
return symbolValueOf.call(object) == symbolValueOf.call(other);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user