I have an array of objects structured as below:
const myArr = [ { name: "John", surname: "Smith", age: 18}, { name: "Steve"