Skip to content
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"


References

Clone this wiki locally