create/access objects with a key-string
JavaScript Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
objpath.js
package.json
test.js

README.md

objpath

create/access objects with a key-string

var objpath = require('objpath')
objpath(this, 'foo.bar', 'blub')
assert.equal(this.foo.bar,'blub')
assert.equal(objpath(this,'foo.bar'),'blub')