pufuwozu/roy — Issue #92: First class selectors (  .outerObject.innerObject  as a function)
Author: jordow
Created: 2011-12-30 02:21:09+00:00
State: open

First class selectors make for some seriously powerful sugar.

let testObj = {
outerObj: {
innerObj: {
x: 2
}
}
}

let accessPath path obj = (path obj)

log (accessPath .outerObj.innerObj testObj)