trim all the commas from data in node js code example
Example: remove commas from string javascript
var purpose = "I, Just, want, a, quick, answer!";
// Removing the first occurrence of a comma
var result = purpose.replace(",", "");
// Removing all the commas
var result = purpose.replace(/,/g, "");