title: Destructuring assignment to costruct a new object - Is it possible?
body: <p>Is it possible to use destructuring assignment syntax to make it possible to extract data objects into another object instead distinct variables?</p>
  
  <p>Example which produce distinct variables (foo, bar):
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var {p: foo, q: bar} = {p: 42, q: true};
   
  console.log(foo); // 42
  console.log(bar); // true  </code></pre>
  </div>
  </div>
  </p>
  
  <p>I would need in stead to create a new object which contains the following properties as:</p>
  
  <pre><code>var n = {
  foo: 42,
  bar: true
  }
  </code></pre>