mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
_.isEqual: Fix an erroneous check for the constructor property.
This commit is contained in:
@@ -726,7 +726,7 @@
|
||||
}
|
||||
} else {
|
||||
// Objects with different constructors are not equivalent.
|
||||
if ("constructor" in a == "constructor" in b && a.constructor != b.constructor) return false;
|
||||
if ("constructor" in a != "constructor" in b || a.constructor != b.constructor) return false;
|
||||
// Deep compare objects.
|
||||
for (var key in a) {
|
||||
if (hasOwnProperty.call(a, key)) {
|
||||
|
||||
Reference in New Issue
Block a user