object destructuring with aliasing javascript code example
Example: javascript object destructuring alias
// Grabs obj.x as as { otherName }
const { x: otherName } = obj;
// Grabs obj.x as as { otherName }
const { x: otherName } = obj;