Examples:
-
map(Emails[];email)
Returns a primitive array with emails
-
map(Emails[];email;label;work;home)
Returns a primitive array with emails having a label equal to work or home
For more information, see Map an array or array element.
shuffle
sort (array; [order]; [key])
Sorts values of an array. The valid values of the order
parameter are:
-
asc
(default) - ascending order: 1, 2, 3, 鈥� for type Number. A, B, C, a, b, c, 鈥� for type Text
-
desc
descending order: 鈥�, 3, 2, 1 for type Number. 鈥�, c, b, a, C, B, A for type Text.
-
asc ci
case insensitive ascending order: A, a, B, b, C, c, 鈥� for type Text.
-
desc ci
case insensitive descending order: 鈥�, C, c, B, b, A, a for type Text.
Use the key
parameter to access properties inside complex objects.
Use raw variable names for keys.
To access nested properties, use dot notation.
The first item in an array is index 1.