Takes a separator string and a iterable or asynchronous iterable and returns a string with the concatenation of all the elements separated by the separator.
separator
const joinWithSpaces = join(" ");joinWithSpaces([1, 2, 3]); // "1 2 3" Copy
const joinWithSpaces = join(" ");joinWithSpaces([1, 2, 3]); // "1 2 3"
String to use as separator.
Curried function with separator in context.
Takes a
separator
string and a iterable or asynchronous iterable and returns a string with the concatenation of all the elements separated by theseparator
.Example