54 Articles in this category
-
DarkLight
list
54 Articles in this category
-
DarkLight
Count
Returns the number of items in the given list.
For measuring the length for a text, use LENGTH instead.
Function signature
COUNT(list: Array) => Number
Examples
Updated on : 27 May 2022
First_item
Returns the first item from the given list. If the list empty then returns undefined value.
Function signature
FIRST_ITEM(list: Array) => Number|String|Object
Examples
array = [{"a":1},{"a":2},{"a":3}]
Updated on : 27 May 2022
Last_item
Returns the last item from the given list. If the list empty then returns undefined value.
Function signature
LAST_ITEM(list: Array) => Number|String|Object
Examples
array = [{"a":1},{"a":2},{"a":3}]
Updated on : 27 May 2022
Repeat
Constructs a list with a certain value repeated the given number of times
Function signature
REPEAT(item: , count: Number) => Array
Examples
Updated on : 27 May 2022
Reverse
Returns a list containing all the values from the given list, but in reverse order.
Function signature
REVERSE(list: Array) => Array
Examples
charArray = ["a","b","c"]
numbersArray = [1,2,3]
simpleArray = [1]
Updated on : 27 May 2022
Shuffle
Returns a list containing all the values from the list parameter, but shuffled into a random order.
Function signature
SHUFFLE(list: Array) => Array
Examples
array1 = ["a","b","c","d","e"]
array2 = ["a","b","c",1,2,3]
Updated on : 27 May 2022