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…

Jakub

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store