I have an array in javascript. This array has strings that contains commas (","). I want all commas to be removed from this array. Can this be done?
Yes.
for(var i=0; i < arr.length; i++) { arr[i] = arr[i].replace(/,/g, ''); }
2.1m questions
2.1m answers
60 comments
57.0k users