dprop
Stupidly small utility for making enumerable and configurable getter/setter objects, because ES5 is annoying.
Before:
Object
After:
var getter = Object
Usage
dprop([get], [set])
Returns a { configurable: true, enumerable: true }
object with the specified (optional) get
and set
functions.
See Also
- d - a little more feature rich
License
MIT, see LICENSE.md for details.