title: Update Multiple Properties of an object with spread operator
body: <p>I have a state in a reducer that looks like this:</p>
  
  <pre><code>// The current source/selection
  const selection = {
    timespan: "-3660",
    customTimespan: false,
    pathIds: [''],
    source: undefined,
    direction: 0,
    appClassIds: []
  };
  </code></pre>
  
  <p>What I want now is to update multiple properties (timespan and customTimeSpan), something like this (but this doesn't work):</p>
  
  <pre><code>{ ...state, 
    {
        timespan: action.timespan.value,
        customTimespan: action.timespan.value
    } 
  };
  </code></pre>
  
  <p>How can I update multiple properties of a state?</p>