JavaScript
Article
By Sam Deering

jQuery convert array to string

By Sam Deering

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

--ADVERTISEMENT--

var blkstr = $.map(value, function(val,index) {
     var str = index + ":" + val;
     return str;
}).join(", ");
Login or Create Account to Comment
Login Create Account
Recommended
Sponsors
Get the most important and interesting stories in tech. Straight to your inbox, daily.