title: I don't quite get a javascript syntax about passing arguments
body: <p>My code:</p>
  
  <pre><code>const users = [ { id: 1, name: 'user1' }, { id: 2, name: 'user2' } ]
  
  p = new Promise( resolve =&gt; resolve(users) )
  
  p.then( (user) =&gt; console.log(user) )   
  </code></pre>
  
  <p>Return me the following logs:</p>
  
  <blockquote>
    <blockquote>
      <p>[ { id: 1, name: 'user1' }, { id: 2, name: 'user2' } ]</p>
    </blockquote>
  </blockquote>
  
  <p>If I change it as below,</p>
  
  <pre><code>users.then( ([user]) =&gt; console.log(user) ) 
  </code></pre>
  
  <p>I receive the following logs:</p>
  
  <blockquote>
    <blockquote>
      <p>{ id: 1, name: 'user1' }</p>
    </blockquote>
  </blockquote>
  
  <p>I don't quite understand why the second one only logs the first element in the array.</p>