title: ES6 destructuring/cloning a subset of an object
body: <p>I'm still getting used to destructuring in ES2015/ES6 and wondered if there's a nice way to clone certain keys of an object using it. It's a little hard to explain in words so I'll let the code do the talking. Here's a simplified version of what I have at the moment:</p>
  
  <pre><code>const objectWithLoadsOfData = {
    a: 'a',
    b: 'b',
    c: 'c',
    d: 'd'
  };
  
  const objectWithDataSubset = {
    a: objectWithLoadsOfData.a,
    b: objectWithLoadsOfData.b
  }
  </code></pre>
  
  <p>It works, but it seems like it could be simplified with destructuring somehow. Potentially something like:</p>
  
  <pre><code>const objectWithDataSubset = objectWithLotsOfData {a, b};
  </code></pre>
  
  <p>Obviously this is invalid, but is there something like this that exists?</p>