title: Difference between Object.assign and object spread (using [...] syntax)?
body: <p>I have some code here and I was wondering if it is the same thing or different. I am pretty sure these are both suppose to be the same but I wasnt sure if I was doing it right.</p>
  
  <pre><code>let zoneComment = updatedMap[action.comment.zone]
          ? [...updatedMap[action.comment.zone]] : [];
  </code></pre>
  
  <hr>
  
  <pre><code>let zoneComment = updatedMap[action.comment.zone]
            ? Object.assign([], updatedMap[action.comment.zone]) : [];
  </code></pre>
  
  <p>If these are the same then which should I use or does it matter? I want to use best practice so if it is your OPINION of which is better then please state so. </p>