title: JavaScript Destructure and assign to new object
body: <p>In JavaScript/Typescript,</p>
  
  <p>What is the short version to destructure and then assign in a new object like so :</p>
  
  <pre><code>const payload: MyPayload = { a: 1, b: 2, c: 3, d: 4, e: 5 }
  
  // Destruct
  const { a, c, e } = payload;
  
  // New Obj
  const newPayload = {
    a, c, e
  };
  </code></pre>