tail source npm

_.tail(array)

Gets all but the first element of array.

Arguments

  1. array (Array)

    The array to query.

Returns (Array)

Returns the slice of array.

Example

_.tail([1, 2, 3]);
// => [2, 3]