Array.first

Array.first

Array.first

Function

Returns the first element of the array.

Syntax

Parameters

None.

Return value

TypeDescription
AnyThe first element; an empty array returns empty.

Code Example

Notes

  • The original array is not modified.