object-dig
This allow you to use method like Ruby's hash#dig in JavaScript.
http://ruby-doc.org/core-2.3.0_preview1/Hash.html#method-i-dig
Retrieves the value object corresponding to the each key objects repeatedly.
Install
$ npm install --save object-dig
Usage
var dig = ; var object = a: b: c: 'c' ; ;// => { c: 'c' } ;// => 'c' ;// =>undefined
and you can give function object to dig. Function object's argument is result of just before evaluating.
;// => 'c was changed' ;// => 'c was changed more'
License
MIT © joe-re