Gets the first element of array.
array
The array to query.
Returns the first element of array.
5.5.0
[[head]]
first([1, 2, 3]);// => 1first([]);// => undefined Copy
first([1, 2, 3]);// => 1first([]);// => undefined
Gets the first element of
array
.