JS -массив к списку запятой
var colors = ["red", "blue", "green"];
var colorsCSV = colors.join(","); //"red,blue,green"
Grepper
var colors = ["red", "blue", "green"];
var colorsCSV = colors.join(","); //"red,blue,green"