Created
May 26, 2014 00:29
-
-
Save flaviosilveira/87bc90e3f0f495bd3fa1 to your computer and use it in GitHub Desktop.
JavaScript - Array Explode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var value = { "aaa": "111", "bbb": "222", "ccc": "333" }; | |
var blkstr = []; | |
$.each(value, function(idx2,val2) { | |
var str = idx2 + ":" + val2; | |
blkstr.push(str); | |
}); | |
console.log(blkstr.join(", ")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment