mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Simplify type checks in _.isEqual.
Former-commit-id: a1aeb5aeab6ef30c6f9377f5498da4eb6d112bc3
This commit is contained in:
6
build.js
6
build.js
@@ -266,7 +266,7 @@
|
||||
'escapeHtmlChar': ['htmlEscapes'],
|
||||
'htmlUnescapes': ['htmlEscapes'],
|
||||
'isArray': ['reNative'],
|
||||
'isEqual': ['indicatorObject'],
|
||||
'isEqual': ['indicatorObject', 'objectTypes'],
|
||||
'isObject': ['objectTypes'],
|
||||
'isPlainObject': ['reNative'],
|
||||
'isRegExp': ['objectTypes'],
|
||||
@@ -3320,8 +3320,8 @@
|
||||
' otherType = typeof b;',
|
||||
'',
|
||||
' if (a === a &&',
|
||||
" (!a || (type != 'function' && type != 'object')) &&",
|
||||
" (!b || (otherType != 'function' && otherType != 'object'))) {",
|
||||
" !(a && objectTypes[type]) &&",
|
||||
" !(b && objectTypes[otherType])) {",
|
||||
' return false;',
|
||||
' }',
|
||||
' if (a == null || b == null) {',
|
||||
|
||||
Reference in New Issue
Block a user