first
first() -> value
Returns the first item in the array, or undefined if the array is empty.
Example
['Ruby', 'Php', 'Python'].first()
// -> 'Ruby'
[].first()
// -> undefined
© 2006-2008 Prototype Core Team
© 2009 перевод Иванов Егор
© 2009 перевод Иванов Егор