Destructuring Arrays in JavaScript
Destructuring was first introduced in JavaScript version ES6 2015 to help extract data from iterables (arrays, objects, maps) into separate variables. For arrays, destructuring is used to retrieve...
https://medium.com/weekly-webtips/destructuring-arrays-in-javascript-9489b56b8742