ES6/ES2015 object destructuring and changing target variable : <p>How can I rename the target during object destructing?</p>

<pre><code>const b = 6;
const test = { a: 1, b: 2 };
const {a, b as c} = test; // &lt;-- `as` does not seem to be valid in ES6/ES2015
// a === 1
// b === 6
// c === 2
</code></pre>
