How do I modify array properties to return a new array?

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
}]
Sep.26,2021

just traverse the replacement string directly

var new_arr = arr.map((val)=>{
   val.pay1 = val.pay1.replace(',','')
   val.pay2 = val.pay2.replace(',','')
   return val;
})
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3de48-2c3c6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3de48-2c3c6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?