If value
is associative array, such code will work fine:
var value = { "aaa": "111", "bbb": "222", "ccc": "333" };_x000D_
var blkstr = [];_x000D_
$.each(value, function(idx2,val2) { _x000D_
var str = idx2 + ":" + val2;_x000D_
blkstr.push(str);_x000D_
});_x000D_
console.log(blkstr.join(", "));
_x000D_
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
_x000D_
(output will appear in the dev console)
As Felix mentioned, each()
is just iterating the array, nothing more.