title: Join a set of objects into one object?
body: <p>Suppose I have a data structure like this:</p>
  
  <pre><code>const list = [
    {"hello": "world"},
    {"goodbye": "cruel world"}
  ]
  </code></pre>
  
  <p>and I want to join it into:</p>
  
  <pre><code>{"hello": "world",
   "goodbye": "cruel world"}
  </code></pre>
  
  <p>I can do it semi-elegantly like so:</p>
  
  <pre><code>const union = l.reduce((acc, o) =&gt; {
    Object.keys(o).forEach((k) =&gt; acc[k] = o[k]);
    return acc;
  }, {})
  </code></pre>
  
  <p>But is there a more elegant way, perhaps built into the JS standard library?</p>