mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Remove isStrictComparable use from _.isEqual.
This commit is contained in:
@@ -8769,9 +8769,6 @@
|
|||||||
*/
|
*/
|
||||||
function isEqual(value, other, customizer, thisArg) {
|
function isEqual(value, other, customizer, thisArg) {
|
||||||
customizer = typeof customizer == 'function' ? bindCallback(customizer, thisArg, 3) : undefined;
|
customizer = typeof customizer == 'function' ? bindCallback(customizer, thisArg, 3) : undefined;
|
||||||
if (!customizer && isStrictComparable(value) && isStrictComparable(other)) {
|
|
||||||
return value === other;
|
|
||||||
}
|
|
||||||
var result = customizer ? customizer(value, other) : undefined;
|
var result = customizer ? customizer(value, other) : undefined;
|
||||||
return result === undefined ? baseIsEqual(value, other, customizer) : !!result;
|
return result === undefined ? baseIsEqual(value, other, customizer) : !!result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user