Exchange comma with dot in an object item on an array
let array=[
{price: "149,99",rating: "4.9"},
{price: "49,99",rating: "4.2"}
];
How i can replace comma in the value of price with dot and return an array with updated price value
I tried to replace dot using map method but i can't return all array
let arrayApdated= array.map(item=>item.replace(/,/g,'.');
// return ["149.99","49.99"];
// expecting value [{price: "149,99",rating: "4.9"},{price: "49,99",rating: "4.2"}];