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.
Last updated 7 years ago by henrikjoreteg .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install get-result 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.0                                ...           latest (7 years ago)

1 Versions

  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |