Answers for "how to remove the commas from an array in javascript"

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 "how to remove the commas from an array in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language