Javascript ES6 Array & Object Destructuring

Sherlynn
2 min readAug 31, 2019

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

--

--