4.17.11
3.10.1
2.4.2
1.3.1
_.toArray(value)
Converts value
to an array.
Since
0.1.0
Arguments
argument
value
type
*
description
The value to convert.
Returns
(array)
Example
_.toArray({ a: 1, b: 2 });
// => [1, 2]
_.toArray("abc");
// => ['a', 'b', 'c']
_.toArray(1);
// => []
_.toArray(null);
// => []
_.toArray({ a: 1, b: 2 });
// => [1, 2]
_.toArray("abc");
// => ['a', 'b', 'c']
_.toArray(1);
// => []
_.toArray(null);
// => []