title: Javascript array de-structuring and Object.entries
body: <p>It's pretty simple: <code>Object.entries</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries" rel="nofollow noreferrer">is supposed to produce and <code>Array</code> of key, value pairs.</a>. As such, I would expected this code to destructure</p>
  
  <pre><code>[{
    id: 1,
    name: "christian"
  },{
    id : 2,
    name: "bongiorno"
  }].map(Object.entries).forEach(([k,v]) =&gt; console.log(`${k}: ${v}`));
  </code></pre>
  
  <p>into producing:</p>
  
  <pre><code>id:1 name:christian
  id:2 name:bongiorno
  </code></pre>
  
  <p>But it doesn't. I get, instead: </p>
  
  <pre><code>id,1: name,christian
  id,2: name,bongiorno
  </code></pre>
  
  <p>What did I miss?</p>