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