Ensure _.where handles properties with undefined properties. [closes #461]

This commit is contained in:
John-David Dalton
2014-01-27 08:16:10 -08:00
parent 752545ec0e
commit 6cef7d5060
8 changed files with 69 additions and 38 deletions

View File

@@ -4682,7 +4682,9 @@
result = false;
while (length--) {
if (!(result = object[props[length]] === source[props[length]])) {
var key = props[length];
if (!(result = hasOwnProperty.call(object, key) &&
baseIsEqual(object[key], source[key], null, true))) {
break;
}
}