prop

0.1.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    82
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    82
  • 0.1.0
    3

Package Sidebar

Install

npm i prop

Weekly Downloads

78

Version

0.1.1

License

none

Last publish

Collaborators

  • jackhq