Ensure _.valuesIn returns results. [closes #2000]

This commit is contained in:
John-David Dalton
2016-02-15 09:14:10 -08:00
parent cf1a4f893f
commit 761a100397
2 changed files with 26 additions and 12 deletions

View File

@@ -12017,7 +12017,7 @@
* // => [1, 2, 3] (iteration order is not guaranteed)
*/
function valuesIn(object) {
return object == null ? baseValues(object, keysIn(object)) : [];
return object == null ? [] : baseValues(object, keysIn(object));
}
/*------------------------------------------------------------------------*/