let myArray = [
{ age: 21 },
{ name: 'Sara' },
{ test01: 'bla' },
{ test02: 'bla' }
];
I have an array of objects and I need to update only the "name" property. How should I go about it?
This is the desired outcome:
let myArray = [
{ test: "Jhon" },
{ name: "Alex" },
{ test01: "Domnic" },
{ test02: "Bravo" }
];