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] |
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] |
Designed by : w10schools
service@w10schools.com
Please login to continue.