title: Is there a way to destructure an object into a new object in es6?
body: <p>For instance, I have this object:</p>
  
  <pre><code>const payload = {
      apple: 1,
      dog: 2,
      cat: 3
  }
  </code></pre>
  
  <p>and I want to destructure it into a new object that only contains <code>apple</code> and <code>dog</code>:</p>
  
  <pre><code>const newPayload = {
      apple:1,
      dog: 2
  }
  </code></pre>
  
  <p>Something like: </p>
  
  <pre><code>const {{apple, dog} : newPayload} = payload
  </code></pre>
  
  <p>Obviously the above is wrong, but wondering if there is a way to do something like this.</p>
  
  <p>Thanks!</p>