title: How can I update object in an array in Nodejs?
body: <p>This is my array</p>
  
  <pre><code>const arr = [
  { id: "1", hello: "hello1" },
  { id: "2", hello: "hello2" },
  </code></pre>
  
  <p>];</p>
  
  <p>I want this code</p>
  
  <pre><code>const finalarr = [
  { id: "1", hello: "hello1", bye: 'bye1' },
  { id: "2", hello: "hello2", bye: 'bye2' },
  </code></pre>
  
  <p>];</p>