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
© 2006-2008 Prototype Core Team
© 2009 перевод Иванов Егор
© 2009 перевод Иванов Егор