functional property method
JavaScript
Switch branches/tags
Nothing to show
Pull request Compare This branch is 2 commits behind twilson63:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
.gitignore
index.js
package.json
readme.md

readme.md

prop

Functional method to get a property from an object.

usage

var obj = {foo: 'bar'}
var result = prop('foo')(obj)

// Also with nested properties
var nested = { foo: { bar: "baz" }}
var result = prop("foo.bar")(nested)

install

npm install prop

contribute

pull requests welcome

license

MIT

Thanks to

Thanks to