DEV Community

Cover image for All you need to know about destructuring in JavaScript

All you need to know about destructuring in JavaScript

Nathanael Demacon on October 08, 2018

There is one fact that nobody can deny- everythingΒ , once built, can be destroyed. This concept also applies to programming. In this article, I wil...
Collapse
 
jstrebeyko profile image
Jakub Jan Strebeyko

Great job explaining, Nathanael! Many thanks

BTW there are few moments in the article ("Default value to a destructed property", "Bypassing indexes in an array's destructing assignment") that seem to be intended as subsections titles (they are descriptive phrase equivalents) that seem to be lacking proper styling and, most of all, a space at the end, so they concatenate with actual paragraph content.

Otherwise it's great, keep it up! <3

Collapse
 
maxart2501 profile image
Massimo Artizzu

Huh, I don't know if it was intentionally funny, but destruction !== destructuring. It's not "destruct" as in "wipe out", it's "destructure" as in "disassemble".

Collapse
 
quantumsheep profile image
Nathanael Demacon

Yup, it was a mistake, thanks you! πŸ˜„

Collapse
 
samhk222 profile image
Samuel

Can't thank you enough!