DEV Community

Cover image for DOM is easy: Just make it work like an Array 👍

DOM is easy: Just make it work like an Array 👍

𒎏Wii 🏳️‍⚧️ on January 12, 2024

Modifying DOM elements without a framework can be tedious. The method names are long, and simple common tasks are split into tiny steps. Wouldn't ...
Collapse
 
greenteaisgreat profile image
Nathan G Bornstein • Edited

Yooo, that's really cool! One of my teachers once said that "all the DOM is, is just a big ass object" and it's stuck with me since. Array manipulation comes to me so much easier than object manipulation does. Even though everything in JS is literally an object, but pppbbbttttt

👏👏👏

Collapse
 
__masashi__ profile image
Masashi

It's actually a pretty good addition to the projects using VanillaJS...
If I happen to work on any major project using Vanilla, I surely will use this.