I can go with find for editing one property like in this example. But I didn't find a syntax to edit more than one property.
const arr = [
{
id: 101,
name: “Jone”,
age: 1
},
{
id: 102,
name: “Jane”,
age: 2
},
{
id: 103,
name: “johnny”,
age: 3
}
];
console.log(arr);
arr.find(element => element.id == 101).name = “jimmy”
console.log(arr);