Destructuring assignment is undoubtedly one of the most beloved features, added as a part of ES2015 specification. Not only it lets you type less, but also makes your code look by far cleaner. Its use is simply ubiquitous in every single ES2015+ project these days.
We can distinguish two kinds of…