How to destructure an array partially?

Let's assume that you have the following array:

javascript
var siblings = ['Erik', 'Andrea', 'Paula'];

You can fully destructure the array:

javascript
var [old, younger, youngest] = siblings;

console.log(old); // Erik
console.log(younger); // Andrea
console.log(youngest); // Paula

Or partially destructure the array (empty positions) by not writing a variable:

javascript
var [old, , youngest] = siblings;

console.log(old); // Erik
console.log(youngest); // Paula

Hi, I'm Erik, an engineer from Barcelona. If you like the post or have any comments, say hi.