Answers for "react how to remove commas from a string"

4

react how to remove commas from a string

var stringWithCommas = 'a,b,c,d';
var stringWithoutCommas = stringWithCommas.replace(/,/g, '');
console.log(stringWithoutCommas);
Posted by: Guest on May-17-2020

Code answers related to "react how to remove commas from a string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language