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