last
last() -> value
Returns the last item in the array, or undefined
if the array is empty.
Example
['Ruby', 'Php', 'Python'].last()
// -> 'Python'
[].last()
// -> undefined
last() -> value
Returns the last item in the array, or undefined
if the array is empty.
['Ruby', 'Php', 'Python'].last()
// -> 'Python'
[].last()
// -> undefined