When doing deep and nested destructuring, you can destructure array items by index
function nestedArrayAndObject() {
const info = {
title: 'Once Upon a Time',
protagonist: {
name: 'Emma Swan',
enemies: [
{name: 'Regina Mills', title: 'Evil Queen'},
{name: 'Cora Mills', title: 'Queen of Hearts'},
{name: 'Peter Pan', title: `The boy who wouldn't grow up`},
{name: 'Zelena', title: 'The Wicked Witch'},
],
},
}
// const title = info.title
// const protagonistName = info.protagonist.name
// const enemy = info.protagonist.enemies[3]
Thanks to @KentDodds for the example on his ES6 and Beyond YouTube series.


