If value is not a plain array, such code will work fine:

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(", "));
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

(output will appear in the dev console)

As Felix mentioned, each() is just iterating the array, nothing more.

Answer from user447356 on Stack Overflow
🌐
W3Schools
w3schools.com › jsref › jsref_tostring_array.asp
JavaScript Array toString() Method
The toString() method returns a string with array values separated by commas. The toString() method does not change the original array. Every JavaScript object has a toString() method.
🌐
CodingNomads
codingnomads.com › javascript-array-to-string-conversion
JavaScript Array-String Conversion
Learn how to seamlessly convert between arrays and strings in JavaScript using methods like .join(), .split(), and more.
🌐
ReqBin
reqbin.com › code › javascript › ot8wzla9 › javascript-array-to-string-example
How do I convert array to string in JavaScript?
November 21, 2023 - You can also create a multiline string, check if it starts or ends with another string, and get the length of a string. In JavaScript, you can convert an array to a string using the Array.join(separator) and array.toString() methods.
🌐
Scaler
scaler.com › home › topics › array to string in javascript
Array to String in JavaScript - Scaler Topics
January 8, 2024 - How to convert such an array into a string? toString() flattens the array. Thus all the elements of the array, including the nested array elements, get combined into a single array. And that's how we get the new array having all the elements separated by a comma.
🌐
Tabnine
tabnine.com › home › array to string in javascript
Array to String in JavaScript - Tabnine
July 25, 2024 - JavaScript’s toString() method operates on a given object, returning its text representation as a string. Applying the toString() method to an array returns the values in the array as a string.
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › convert-array-to-string-in-javascript
Convert Array to String in JavaScript - GeeksforGeeks
July 23, 2025 - The foreach() method of JavaScript calls a callback function and performs operations specified on each and every element. Basically, it neither creates new array nor modifies the original array. It basically performs operations on each and every element. Here, in this approach the foreach() method iterates over each and every element and manually concatenates them into the string. This type of method is very useful when one needs to build a string manually with the specific logic for each and every element.
🌐
Medium
medium.com › konsole-blog › 5-ways-to-convert-array-to-string-in-javascript-f6a92ac5788f
5 ways to convert Array to String in Javascript | by David Petrosyan | Konsole.blog | Medium
May 23, 2022 - We check to see if the element is equal to 'b'. If it is, we append that element with a separator. Otherwise we append the element without the separator. You can also use the array.reduce() method for joining with custom logic. The previous example with a for loop can be rewritten like this: const myArray = ['a', 'b', 'c', 'c', 'b', 'a', 'd']const myString = myArray.reduce((stringAccumulator, currentElement) => { const separator = ';' if (currentElement === 'b') { return stringAccumulator += (currentElement + separator) } return stringAccumulator += currentElement }, '')console.log(myString) // 'ab;ccb;ad'
Find elsewhere
🌐
Favtutor
favtutor.com › articles › convert-array-to-string-javascript
Convert Array to String JavaScript (5 Easy Methods)
November 25, 2023 - There are times when you need to convert array to string without losing the array structure. JavaScript provides the JSON.stringify() method, which converts JavaScript objects, including arrays, to JSON strings.
🌐
Alma Better
almabetter.com › bytes › articles › array-to-string-javascript
How to Convert Array to String in JavaScript
June 20, 2024 - This method is particularly useful when you need a string representation of an array that can be easily parsed back into an array. ... Template literals in JavaScript allow you to embed expressions inside a string.
🌐
Will Vincent
wsvincent.com › javascript-convert-array-to-string
JavaScript: Convert Array to a String | Will Vincent
January 3, 2018 - That is, an array with an array inside it? Here you need to use JSON.stringify().
🌐
W3Schools
w3schools.com › js › js_arrays.asp
JavaScript Arrays
The JavaScript method toString() converts an array to a string of (comma separated) array values.
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › javascript-array-tostring-method
JavaScript Array toString() Method - GeeksforGeeks
July 14, 2024 - Example 1: In this example The func() function creates an array and converts it to a string using the toString() method. ... // JavaScript to illustrate toString() method function func() { // Original array let arr = ["Geeks", "for", "Geeks"]; ...
🌐
Mastering JS
masteringjs.io › tutorials › fundamentals › array-tostring
Array toString() in JavaScript - Mastering JS
December 8, 2021 - To convert an array to a string in JavaScript, you can use the toString() method.
🌐
TutorialsPoint
tutorialspoint.com › article › How-to-convert-an-array-into-JavaScript-string
How to convert an array into JavaScript string?
March 15, 2026 - The toString() method is a built-in JavaScript function that converts array elements into a comma-separated string.
🌐
Medium
medium.com › @louistrinh › converting-arrays-to-strings-in-javascript-4d1bbea80c20
Converting Arrays to Strings in JavaScript | by Louis Trinh | Medium
November 20, 2024 - You can use template literals to create a String from an Array. Spread syntax helps convert an Array to a list of arguments. ... JavaScript enthusiast here, sharing knowledge & building awesome things. If my articles fuel your projects, consider a coffee!
🌐
YouTube
youtube.com › watch
How to convert an array into a string with JavaScript - YouTube
Source code from this tutorial: https://gist.github.com/cferdinandi/f6a9578f0b1524b434d8831bb1822d95Hate the complexity of modern front‑end web development?
Published: April 21, 2023