Object.assign—override nested property : <p>I have an Object <code>a</code> like that:</p>

<pre><code>const a = {
  user: {
   …
   groups: […]
   …
  }
}
</code></pre>

<p>whereby there are a lot more properties in <code>a.user</code></p>

<p>And I would like to change only the <code>a.user.groups</code> value. If I do this:</p>

<pre><code>const b = Object.assign({}, a, {
  user: {
    groups: {}
  }
});
</code></pre>

<p><code>b</code> doesn't have any other Property except <code>b.user.groups</code>, all others are deleted. Is there any ES6 way to only change the nested property, without loosing all the other, with <code>Object.assign</code>?</p>
