_.tail

_.tail(array)

Gets all but the first element of array.

Since

4.0.0

Arguments

  1. array (Array): The array to query.

Returns

(Array): Returns the slice of array.

Example

1
2
_.tail([1, 2, 3]);
// => [2, 3]
doc_Lodash
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.