Joins all elements of an array into a string, separated by the specified separator.
The array of elements to join.
The string to separate each element. Defaults to a comma (",").
A string with all array elements joined by the separator.
join([1, 2, 3], "-");// → "1-2-3"join(["a", "b", "c"]);// → "a,b,c" Copy
join([1, 2, 3], "-");// → "1-2-3"join(["a", "b", "c"]);// → "a,b,c"
1.0.0
Joins all elements of an array into a string, separated by the specified separator.