Destructuring is a new feature in ECMAScript 2015. Destructuring allows binding a set of variables to a corresponding set of values (objects and arrays) anywhere we can bind a value to a single variable. Today we are already doing destructuring (extracting values) almost in every JavaScript program, but we do it manually. To understand destructuring…
I have been exploring and working on ECMAScript 2015 (formerly know as ECMAScript 6/ES6). I am going to blog about all the new ECMAScript 2015 features. Here is the list of blogposts: Destructuring in ECMAScript 2015 Spread Operator in ECMAScript 2015