an original array
var arr = [{
pay1:"122,33.22",
pay2:"111,111,2.33",
id:1,
value:2
},{
pay1:"111,33.22",
pay2:"121,221,2.33",
id:1,
value:2
}]
how to remove the comma of each object pay1 and pay2 and return a new array
var newArr = [{
pay1:"12233.22",
pay2:"1111112.33",
id:1,
value:2
},{
pay1:"11133.22",
pay2:"1212212.33",
id:1,
value:2
}]