mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Ensure _.valuesIn returns results. [closes #2000]
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user