SyntaxFix
Write A Post
Hire A Developer
Questions
General form is:
var ids = []; <= this is your array/collection var csv = ids.join(",");
For your case you will have to adapt a little bit