JavaScript: Array.prototype.join

By Xah Lee. Date: . Last updated: .
arrayX.join()
Join array elements to string, using comma ",".
console.log([3, 4, 5].join() === "3,4,5");
arrayX.join(seperator_string)
Use seperator_string between elements.
console.log([3, 4, 5].join("-") === "3-4-5");
BUY
ΣJS
JavaScript in Depth

JS Obj Reference

Array

prototype