如何在Node.js中更新数组中的对象?

这是我的数组

const arr = [
{ id: "1", hello: "hello1" },
{ id: "2", hello: "hello2" },

];

我想要这个代码

const finalarr = [
{ id: "1", hello: "hello1", bye: 'bye1' },
{ id: "2", hello: "hello2", bye: 'bye2' },

];