getters-to-props.js
Get simple properties from object of getters.
Install
Node
npm install --save getters-to-props
Bower (AMD, Global)
bower install --save getters-to-props
Use
var gettersToProps = ; var obj = { return 1; } {} { return another: 'yep' ; } notMe: 'nope' { throw "oops"; }; props = ; // props is now: thing: 1 more: another: 'yep' failure: undefined // or options, e.g. "others" props = ; // props is now: thing: 1 more: another: 'yep' failure: undefined notMe: 'nope'