Gets the element at index n of array. If n is negative, the nth element from the end is returned.
n
array
array The array to query.
Optional
Returns the nth element of array.
Gets the element at index
n
ofarray
. Ifn
is negative, the nth element from the end is returned.