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