Returns the first element of an array.
This function takes an array and returns the first element of the array.
If the array is empty, the function returns undefined
.
The first element of the array.
Returns the first element of an array or undefined
if the array is empty.
This function takes an array and returns the first element of the array.
If the array is empty, the function returns undefined
.
The array from which to get the first element.
The first element of the array, or undefined
if the array is empty.
Alias