Javascript Destructure Object y renombrar

const o = {p: 42, q: true};
const {p: foo, q: bar} = o;

console.log(foo); // 42
console.log(bar); // true
Angry Alpaca