How to use object destructuring with the index over an array?
const names = ['Roy', 'Liz', 'Sofia', 'Clau']
const {
0: zero,
1: one,
2: two,
3: three,
} = names
console.log(zero) // 'Roy'
const names = ['Roy', 'Liz', 'Sofia', 'Clau']
const {
0: zero,
1: one,
2: two,
3: three,
} = names
console.log(zero) // 'Roy'