title: JSON Array union
body: <p>I have 2 JSON Array as below
  Array 1:</p>
  
  <pre><code>[
      { id : 1, b: 1},
      { id : 2, b: 2},
      { id : 3, b: 3},
  ]
  </code></pre>
  
  <p>Array 2:</p>
  
  <pre><code>[
      { id : 1, c: 1},
      { id : 3, c: 3},
      { id : 4, c: 4}
  ]
  </code></pre>
  
  <p>And using nodejs code i need to union of both as below.</p>
  
  <p>Union:</p>
  
  <pre><code>[
      { id : 1, b: 1, c:1},
      { id : 2, b: 2},
      { id : 3, b: 3, c:3},
      { id : 4, c: 4}
  ]
  </code></pre>
  
  <p>Could someone help the best possible way?</p>