Returns the first item from an array.
arrayFirst(array)
returns any
array.first()
Name | Type | Required | Default | Description |
---|---|---|---|---|
array | array | Yes |
Use the member function to return the first item from an array
someArray = [1,2,3,4];
WriteOutput(someArray.first());
Return the first item from an array
seinfeldArray = ["Jerry","Elaine","Kramer","George"];
WriteOutput(arrayFirst(seinfeldArray));