functional property method
JavaScript
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

contributors

  • twilson63
  • Raynos

license

MIT

Thanks to

Thanks to