List Functions
Modified on Thu, 17 Aug 2023
4 minutes read
This document is a draft version and subject to further review and revision. Please refrain from distributing or relying on its contents as final.
UI Element | Description |
---|---|
chunk | Create an array of elements split into groups the length of size. |
concat | Create a new array concatenating array with any additional arrays and/or values. |
first | Get the first element of an array |
drop | Create a slice of array with n elements dropped from the beginning. |
filter | Iterate over elements of collection, return an array of all elements predicate returns truthy for. |
find | Return the first element in the provided array that satisfies the provided testing function |
arraySum | Compute the sum of the values in array |
flatten | Flatten array a single level deep. |
flattenDeep | Recursively flatten array. |
flattenDepth | Recursively flatten array up to depth times. |
indexOf | Get the index at which the first occurrence of value is found in array |
initial | Gets all but the last element of array. |
intersection | Return the new array of intersecting values. |
join | Convert all elements in array into a string separated by separator. |
last | Get the last element of the array. |
lastIndexOf | Get the index at which the last occurrence of value is found in array |
nth | Get the element at index `n` mber): |
reverse | Reverse `array` so that the first element becomes the last, the second element becomes the second to last, and so on. |
slice | Create a slice of `array` from `start` up to, but not including, `end`. |
tail | Get all but the first element of `array`. |
take | Create a slice of `array` with `n` elements taken from the beginning. |
takeRight | Create a slice of `array` with `n` elements taken from the end. |
map | Return a new array from calling an expression for every array element |
unique | Return the new duplicate free array. |
unzip | Return the new array of regrouped elements. |
zip | Create an array of grouped elements, the first of which contains the first elements of the given arrays, the second of which contains the second elements of the given arrays, and so on. |
every | Return true if all of the array elements pass the test provided by the expression, otherwise false. |
reduce | Apply an expression against an accumulator and each value of the array (from left-to-right) to reduce it to a single value |
leftForList | Return a specified number of characters from the beginning of each string in a list |
removeCharactersForList | Remove a list of characters from each string in a list |
removeNonAlphaNumericCharactersForList | Remove non-alphanumeric characters (excluding letters and digits) from each string in a list |
removeNonAlphaNumericCharactersFromEdgesForList | Remove non-alphanumeric characters (excluding letters and digits) from the edges of each string in a list |
removeNonNumericCharactersForList | Remove non-numeric characters (excluding digits) from each string in a list |
replaceMultipleCharactersForList | Replace multiple characters in a list of strings according to a given mapping |
rightForList | Return a specified number of characters from the end of each string in a list |
stringLengthForList | Calculate the lengths of each string in a list |
textAfterForList | Extract the text after a specified substring in each string of a list |
textBeforeForList | Extract the text before a specified substring in each string of a list |
toLowerForList | Convert each string in a list to lowercase |
toSingleSpaceForList | Convert multiple spaces to a single space for each string in a list |
toTitleCaseForList | Convert each string in a list to proper case (title case) |
toUpperForList | Convert each string in a list to uppercase |
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article