Gets the first element of array.
array
5.0.0
first
last
head([1, 2, 3])// => 1head([])// => undefined Copy
head([1, 2, 3])// => 1head([])// => undefined
The array to query.
Returns the first element of array.
Gets the first element of
array
.Since
5.0.0
Alias
first
See
last
Example