Skip to content
Subhajit Sahu edited this page May 19, 2020 · 15 revisions

Joins values together. [:running:] [:vhs:] [:package:] [:moon:] [:ledger:]

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

var x = [1, 2];
array.join(x);
// '1,2'

array.join(x, ' : ');
// '1 : 2'

references

Clone this wiki locally