Difference between Object.assign and just assign
<p>I would like to know the difference between this:</p>

<pre><code>Object.assign(otherObject, {
  someNewProperty: ''
});
</code></pre>

<p>and</p>

<pre><code>otherObject.someNewProperty = '';
</code></pre>

<p>And.. which one is faster?</p>

<p>Thanks.</p>