last_.last(array, [n])
Returns the last element of an array. Passing n will return the last n elements of the array.
1 2 | _.last([5, 4, 3, 2, 1]); => 1 |
last_.last(array, [n])
Returns the last element of an array. Passing n will return the last n elements of the array.
1 2 | _.last([5, 4, 3, 2, 1]); => 1 |
Designed by : w10schools
service@w10schools.com
Please login to continue.