Down the rabbithole

ekov @ pm.me
Back to cheat sheets

JavaScript

Objects *

Renaming a const while destructuring

const officeDog = { name: 'Lola', age: 10, type: 'labradoodle' };
const { name, age, type: breed } = officeDog;

console.log(breed); // 'labradoodle'