title: Reversing an Object.entries conversion
body: <p>I am using <code>Object.entries</code> in order to get some values out of a nested object and filter it.</p>
  
  <pre><code>obj = Object.entries(obj)
    .filter(([k, v]) =&gt; {
      return true; // some irrelevant conditions here
    });
  </code></pre>
  
  <p>My object ends up as an array of arrays, of keys and vals.</p>
  
  <pre><code>[['key1', val]['key2', val']['key3', val]]
  </code></pre>
  
  <p>Is there a straightforward way to map these back into an object? The original object structure is: </p>
  
  <pre><code>{ key:val, key2:val2, key3:val3 }
  </code></pre>