title: Spread an array of objects into a parent object
body: <p>Is there a simple way to use the spread <code>...</code> operator to combine an array of objects with a another object to create a single object? This example shows what I'm trying to accomplish: </p>
  
  <pre><code>const arrayOfObjects = [
    { x: 'foo' },
    { y: 'bar' }
  ];
  
  const obj = {
    hello: 'world'
  };
  </code></pre>
  
  <p>The output I'm looking for is as follows:</p>
  
  <pre><code>{
    x: 'foo',
    y: 'bar',
    hello: 'world'
  }
  </code></pre>
  
  <p>I've tried the following, amongst other things, but it doesn't quite give the intended output.</p>
  
  <pre><code>{
    hello: 'world'
    ...arrayOfObjects
  }
  
  // Gives
  {
    0: { x: 'foo' },
    1: { y: 'bar' },
    hello: 'world'
  };
  </code></pre>
  
  <p>Is it possible to do this with clever use of the spread operator?</p>