Add _.isEmpty test for prototype objects.

This commit is contained in:
John-David Dalton
2016-10-05 11:04:49 -07:00
parent b30f979ec7
commit 405d5875b8
2 changed files with 13 additions and 1 deletions

View File

@@ -11434,7 +11434,7 @@
return !value.size;
}
if (isPrototype(value)) {
return !nativeKeys(value).length;
return !baseKeys(value).length;
}
for (var key in value) {
if (hasOwnProperty.call(value, key)) {