Powered By GitBook
FIRST_ITEM
Return the first item from a list

Description

Returns the first item from the given list. If the list empty then returns undefined value.

Function signature

1
FIRST_ITEM(list: Array) => Number|String|Object
Copied!
Parameter
Description
List
The list from which to find the first item

Examples

1
array = [{"a":1},{"a":2},{"a":3}]
Copied!
Formula
Return value
FIRST_ITEM([100, 3, 20])
100
FIRST_ITEM(["foo", "bar"])
foo
FIRST_ITEM(array)
{"a":1}
Last modified 10mo ago
Export as PDF
Copy link