Destructuring assignment
Destructuring assignment is an ES6 feature to extract fields from objects in an elegant way. We look at the usage and usefulness of destructuring assignments in this lesson.
Another convenient feature of es6 that we will constantly use is destructuring assignment
.
It seems that we can create objects and arrays effortless and we have really consise and short syntax for that:
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy