Answers for "JavaScript add space after comma"

0

javacript string add space after commas

"1,2, 3,4,5".replace(/,(?=[^\s])/g, ", ");
> "1, 2, 3, 4, 5"
Posted by: Guest on December-04-2020
10

js remove space before string

var str = "  Some text ";
str.trim();
// str = "Some text"
Posted by: Guest on May-27-2020

Code answers related to "JavaScript add space after comma"

Code answers related to "Javascript"

Browse Popular Code Answers by Language