Answers for "array element to string javascript remove commas from specific"

2

javascript array to string remove comma

var array = [0, 1, 2, 3, 4, 5];
var string = array.join("");
console.log(string); // -> 012345
Posted by: Guest on July-16-2021
0

javascript remove multiple commas from string

/[,\s]+|[,\s]+/g

var str= "your string here";
//this will be new string after replace
str = str.replace(/[,\s]+|[,\s]+/g, 'your string here');
Posted by: Guest on May-19-2021

Code answers related to "array element to string javascript remove commas from specific"

Code answers related to "Javascript"

Browse Popular Code Answers by Language