Description

Convert all elements in array into a string separated by separator.

Syntax

join(array, separator)

Parameters

Input ParameterTypeDescription
arrayArrayThe array to convert.
separatorstringThe element separator.

Return value

Type
string

Sample

ExampleResultDescription
join(['a', 'b', 'c'], '~');'a~b~c'Join the elements by '~'

To view all the List functions, click here.