ES6 introduced a number of significant improvements to the language, including de-structuring of Objects and Arrays. Array Destructuring Traditionally, to access elements in an Array, you would do so with their index number like so: const array = [1, 2, 3]; console.log(array[0])
// 1 Javascript ES6 allows you to assign the array…