Worry-free object traversal in JavaScript
Worry-free object traversal in JavaScript
A co-worker today challenged me to come up with a way of traversing objects in JavaScript without worrying about whether any intermediary values were undefined. It had to be short, and it had to have an elegant syntax. This is what I came up with. I'm curious about how it could be done better, or whether people feel like it's an abomination, and a violation of the way people expect to work with objects in JavaScript.
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
See where a JavaScript object's properties were assigned
I made a rational object for javascript
Futuristic Object Traversal for JavaScript
j2c — JavaScript object to CSS compiler
Traverse JavaScript object graphs with jQuery
jemul8, an object-oriented JavaScript x86 Emulator
Object Playground - The definitive guide to object-oriented JavaScript
Sliderm – A Dependency-Free JavaScript Slider
Ajaxial – Painless, JavaScript-Free Ajax
Ity – A miniscule, depedency free JavaScript MVC