A number of JavaScript libraries these days, require strong understanding of the ES6 language. If you want to comfortably work with libraries like Redux, ReactJS, Relay, GraphQL it’s important to understand some of the latest concepts.
Here’s my series of articles with videos on the topics. The first topic is Object Destructuring, where we extract items from an object and assign to variables based on simple pattern matching.
let person = { name: "Sam", age: 12, address: { city: "London" } } //Old style // let name = person.name // let age = person.age //ES2017 let { name,age } = person console.log(name,age); let {n,a} = person console.log(n,a); let {address:{city}} = person console.log(city);
You can watch the video here