March 28, 2019
Today, we will be exploring destructuring assignment — one of the ES6 cool features. It provides a clean way of extracting items of an array or object or anything iterable.
#1 Destructuring basics
There are 2 sides to destructuring in ES6: the source and the template. The ‘source’ is the object...