Powered By GitBook
LAST_ITEM
Return the last item from a list

Description

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

Function signature

1
LAST_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
LAST_ITEM([100, 3, 20])
20
LAST_ITEM(["foo", "bar"])
bar
LAST_ITEM(array)
{"a":3}
Last modified 10mo ago
Export as PDF
Copy link