mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 07:17:50 +00:00
Simplify wrapper inference in _.isEqual.
Former-commit-id: b4fda683ebee4c3f7dddd0cb87201306c08fa7d5
This commit is contained in:
@@ -1452,12 +1452,9 @@
|
||||
}
|
||||
if (objectTypes[typeof a] || objectTypes[typeof b] || thorough.value) {
|
||||
// unwrap any LoDash wrapped values
|
||||
if (a._chain) {
|
||||
a = a._wrapped;
|
||||
}
|
||||
if (b._chain) {
|
||||
b = b._wrapped;
|
||||
}
|
||||
a = a._wrapped || a;
|
||||
b = b._wrapped || b;
|
||||
|
||||
// use custom `isEqual` method if available
|
||||
if (a.isEqual && isFunction(a.isEqual)) {
|
||||
thorough.value = null;
|
||||
|
||||
Reference in New Issue
Block a user