toArray

Lang
since 0.1.0

Arguments

  • * The value to convert.

Returns

Array the converted array.

Converts value to an array.

Example of Lodash _.toArray

_.toArray({ 'a': 1, 'b': 2 });
// => [1, 2]

_.toArray('abc');
// => ['a', 'b', 'c']

_.toArray(1);
// => []

_.toArray(null);
// => []