get-result

0.1.0 • Public • Published

get-result

Utility function for getting a named property from an object. If the named property is a function invoke it with the object as context and return the result, otherwise return the property.

Equivalent to _.result from underscore.js but published as a standalone Common JS module.

install

npm install get-result

example

var get-result = require('get-result');

credits

Credit goes to Jeremy Ashkenas and the rest of the underscore authors.

If you like this follow @HenrikJoreteg on twitter.

license

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    2

Package Sidebar

Install

npm i get-result

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • henrikjoreteg