prop

Functional property method

npm install prop
2 downloads in the last week
8 downloads in the last month

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

npm loves you