title: How to create single object from array of object without overriding the value?
body: <p>How to achieve below output? </p>
  
  <pre><code>const arr = [{ a: 1 }, { a: 2 }, { a: 3 }];
  </code></pre>
  
  <p>Required Output: { a: 1 ,  a: 2 , a: 3 }</p>
  
  <p>The Object.assign overrides the key value and reduces to below output.</p>
  
  <pre><code>Object.assign({}, ...arr); // Output: {a:3}
  </code></pre>