_.tail

rest_.rest(array, [index]) Alias: tail, drop
Returns the rest of the elements in an array. Pass an index to return the values of the array from that index onward.

1
2
_.rest([5, 4, 3, 2, 1]);
=> [4, 3, 2, 1]
doc_Underscore
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.