Stay Down Dev Log - Part 9 - Destructuring Objects

3 years ago
20

In this entry in my little game dev tutorial series I'm just cleaning up my code a bit with JavaScript's Destructuring Assignment syntax. This is a great way to break out the useful parts of large objects to make your code more readable with much less dot walking. You can do more with destructuring, but in this video I just use it for basic assignment.
What you can glean from this video:

00:01:10 - Destructuring a BIG object
00:05:00 - Cleaning up the rest of the code
00:13:40 - Destructuring "this"

Thanks for watching! Like and Subscribe for more videos and definitely check out the website for more content!
https://pothonprogramming.github.io

Loading comments...