mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Add more _.isEqual tests and ensure _.isEqual(_(false), _(false)) will compare correctly.
This commit is contained in:
7
dist/lodash.underscore.js
vendored
7
dist/lodash.underscore.js
vendored
@@ -617,8 +617,11 @@
|
||||
}
|
||||
var isArr = className == arrayClass;
|
||||
if (!isArr) {
|
||||
if (hasOwnProperty.call(a, '__wrapped__ ') || b instanceof lodash) {
|
||||
return baseIsEqual(a.__wrapped__ || a, b.__wrapped__ || b, stackA, stackB);
|
||||
var aWrapped = a instanceof lodash,
|
||||
bWrapped = b instanceof lodash;
|
||||
|
||||
if (aWrapped || bWrapped) {
|
||||
return baseIsEqual(aWrapped ? a.__wrapped__ : a, bWrapped ? b.__wrapped__ : b, stackA, stackB);
|
||||
}
|
||||
if (className != objectClass) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user