join
Modified on Mon, 07 Aug 2023
Description
Convert all elements in array into a string separated by separator.
Syntax
join(array, separator)
Parameters
Input Parameter | Type | Description |
---|---|---|
array | Array | The array to convert. |
separator | string | The element separator. |
Return value
Type |
---|
string |
Sample
Example | Result | Description |
---|---|---|
join(['a', 'b', 'c'], '~'); | 'a~b~c' | Join the elements by '~' |
To view all the List functions, click here.
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