mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 19:07:49 +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);
|
return equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask | UNORDERED_COMPARE_FLAG, stack);
|
||||||
|
|
||||||
case symbolTag:
|
case symbolTag:
|
||||||
return !!symbolValueOf && (symbolValueOf.call(object) == symbolValueOf.call(other));
|
if (symbolValueOf) {
|
||||||
|
return symbolValueOf.call(object) == symbolValueOf.call(other);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user