Skip to content
Subhajit Sahu edited this page Dec 8, 2022 · 3 revisions

Join entries together into a string.

Similar: [concat], [join].


function join(x, sep, asc)
// x:   an object
// sep: separator [,]
// asc: associator [=]
const object = require('extra-object');

var x = {a: 1, b: 2, c: 3};
object.join(x);
// → 'a=1,b=2,c=3'

object.join(x, ', ', ' => ');
// → 'a => 1, b => 2, c => 3'


References

Clone this wiki locally