mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Simplify type checks in _.isEqual.
Former-commit-id: a1aeb5aeab6ef30c6f9377f5498da4eb6d112bc3
This commit is contained in:
@@ -1934,8 +1934,8 @@
|
||||
|
||||
// exit early for unlike primitive values
|
||||
if (a === a &&
|
||||
(!a || (type != 'function' && type != 'object')) &&
|
||||
(!b || (otherType != 'function' && otherType != 'object'))) {
|
||||
!(a && objectTypes[type]) &&
|
||||
!(b && objectTypes[otherType])) {
|
||||
return false;
|
||||
}
|
||||
// exit early for `null` and `undefined`, avoiding ES3's Function#call behavior
|
||||
|
||||
Reference in New Issue
Block a user