Skip to content
Subhajit Sahu edited this page Feb 3, 2021 · 18 revisions

Join values together into a string.

Similar: concat, join.


function join(x, sep)
// x:   an iterable
// sep: separator [,]
const xiterable = require('extra-iterable');

var x = [1, 2];
xiterable.join(x);
// → "1,2"

xiterable.join(x, " : ");
// → "1 : 2"


References

Clone this wiki locally