toArray source npm

_.toArray(value)

Converts value to an array.

Arguments

  1. value (*)

    The value to convert.

Returns (Array)

Returns the converted array.

Example

(function() {
  return _.toArray(arguments).slice(1);
}(1, 2, 3));
// => [2, 3]