mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +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) {
|
if (objectTypes[typeof a] || objectTypes[typeof b] || thorough.value) {
|
||||||
// unwrap any LoDash wrapped values
|
// unwrap any LoDash wrapped values
|
||||||
if (a._chain) {
|
a = a._wrapped || a;
|
||||||
a = a._wrapped;
|
b = b._wrapped || b;
|
||||||
}
|
|
||||||
if (b._chain) {
|
|
||||||
b = b._wrapped;
|
|
||||||
}
|
|
||||||
// use custom `isEqual` method if available
|
// use custom `isEqual` method if available
|
||||||
if (a.isEqual && isFunction(a.isEqual)) {
|
if (a.isEqual && isFunction(a.isEqual)) {
|
||||||
thorough.value = null;
|
thorough.value = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user