ArrayJoin
Takes an array and joins all its elements into a single string, placing a defined separator between each element. Unlike other array functions, the output of ArrayJoin is a string, not an array.
Reference
Parameters
array
The array whose elements will be joined.
Component data2-core-types@Getter
separator
The string placed between each element in the resulting string.
Component data2-core-primitives@String
Example
Input
[1, 2, 3, 4, 5]
Separator: -
Output:
"1-2-3-4-5"
Note: The output is a string, not an array.