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, ''); }
1.4m articles
1.4m replys
5 comments
56.9k users