join

Array
since 4.0.0

Arguments

  • Array The array to convert.
  • string The element separator.

Returns

string the joined string.

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

Example of Lodash _.join

_.join(['a', 'b', 'c'], '~');
// => 'a~b~c'