title: How does one, from a list of objects, group and collect just specific values which are explicitly referred to, each by its key?
body: <p>I have a data structure like</p>
  <pre><code>const dd = [{
    keyone: &quot;test&quot;,
    two: &quot;you&quot;,
    three: 'op',
  }, {
    keyone: &quot;youuuu&quot;,
    two: &quot;ttt&quot;,
    three: 'op',
  }, {
    keyone: &quot;operation&quot;,
    two: &quot;test&quot;,
    three: 'op',
  }];
  </code></pre>
  <p>And I am wanting to be able to pull out keyone and two into an object like the following</p>
  <pre><code>const obj = { keyone: ['test', 'youuuu', 'operation'], two: ['you', 'ttt', 'test']}
  </code></pre>
  <p>I've achieved this using two maps and combining them but I would like to use only one loop if possible.</p>
  <p>EDIT:</p>
  <p>I am currently using destructuring to extract values:</p>
  <pre><code>const mapOne = dd.map(({ keyone }) =&gt; keyone);
  const mapTwo = dd.map(({ two }) =&gt; two);
  const test = {
    keyone: mapOne,
    two: mapTwo,
  };
  </code></pre>