Convenient property accessors.
$ npm install dot-util
$ component install nathan7/dot-util
['the', 'quick', 'brown', 'fox'].map(dot('length')) ~= [3, 5, 5, 3]
[['the', 'quick'], ['brown', 'fox']].map(dot(0).dot('length')) ~= [3, 5]
dot('x') ~= function(obj) { return obj.x }
dot(key)(obj) === obj[key]
returns an accessor for key
dot('x').dot('y') ~= function(obj) { return obj.x.y }``
dot(keyOne).dot(keyTwo)(obj) === obj[keyOne][keyTwo]
returns a composed accessor for key
MIT