You can also handle problems like this via libraries. For example, underscore-contrib [1] does it this way:
var x = _.getPath(a, "b.c.d");
There are definitely advantages to having this pattern baked into the language, though.I've been using node-jsx and jsx-loader to bring JS Harmony syntax into projects I'm working on now. The last great hurdle to make JS a language that's easy to express in is the existential operator. It sucks how often you have to manually null-check in JS.
I'm mighty tempted to write a Webpack plugin to make `?` usable in vanilla JS.
For example, safe object navigation. This code in Spider/CoffeeScript:
compiles to something like: