Converts all elements in array into a string separated by separator.
array
separator
The array to convert.
The element separator.
Returns the joined string.
5.0.0
join(['a', 'b', 'c'], '~');// => 'a~b~c' Copy
join(['a', 'b', 'c'], '~');// => 'a~b~c'
Converts all elements in
array
into a string separated byseparator
.