🤯 60% OFF BLACK FRIDAY SALE 650+ books, courses & coding assessments!

jQuery convert array to string

Sam Deering
Share

A jQuery code snippet to convert an array to a string.

var blkstr = $.map(value, function(val,index) {
     var str = index + ":" + val;
     return str;
}).join(", ");