JavaScript
Article
By Sam Deering

jQuery convert array to string

By Sam Deering

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(", ");
Recommended
Sponsors
Get the latest in JavaScript, once a week, for free.