_.last(array)
Gets the last element of array
.
Since
0.1.0
Arguments
-
array
(Array): The array to query.
Returns
(*): Returns the last element of array
.
Example
1 2 | _.last([1, 2, 3]); // => 3 |
_.last(array)
Gets the last element of array
.
0.1.0
array
(Array): The array to query.(*): Returns the last element of array
.
1 2 | _.last([1, 2, 3]); // => 3 |
Designed by : w10schools
service@w10schools.com
Please login to continue.