Ignore Array destructuring variables
If you don't need an element in an array while destructuring it, simply omit a name:
const [, two, three] = [1, 2, 3];
console.log(two, three)
=> 2 3
Tweet
If you don't need an element in an array while destructuring it, simply omit a name:
const [, two, three] = [1, 2, 3];
console.log(two, three)
=> 2 3
Tweet