-
Notifications
You must be signed in to change notification settings - Fork 0
join
Subhajit Sahu edited this page Dec 28, 2022
·
14 revisions
Join lists together into a string.
function join(x, sep, asc)
// x: lists
// sep: separator [,]
// asc: associator [=]
const xlists = require('extra-lists');
var x = [['a', 'b', 'c'], [1, 2, 3]];
xlists.join(x);
// → 'a=1,b=2,c=3'
xlists.join(x, ', ', ' => ');
// → 'a => 1, b => 2, c => 3'