Get and Set Nested Objects with JavaScript

added by bpwndaddy
8/10/2015 3:44:32 PM

347 Views

Back when JavaScript frameworks like MooTools and jQuery ruled the land we all wrote tutorials which were framed more toward the given framework instead of vanilla JavaScript. Sad but true. These days I avoid framework-oriented posts since Node.js has token over the world and JavaScript toolkits come and go. One very useful post I wrote and still love is Create and Retrieve Nested Objects with MooTools. In that post I showed you how you can easily get and set nested objects, since doing existence checks down the object chain in a manual way is ... ugly. Let's tear this functionality out of its MooTools orientation so you can take it with you wherever you go!


0 comments