compiled-accessors
Compiled getter/setter for highest perfs.
Install
Download manually or with package-manager.
npm install --save compiled-accessors
bower
bower install --save compiled-accessors
Example
var CA = require('compiled-accessors');
var obj = {
foo {
bar: 'Fry'
}
}
var getFooBar = CA.getter('foo.bar');
console.log(getFooBar(obj));
var setFooBar = CA.setter(['foo', 'bar']);
setFooBar(obj, 'Zoidberg');
Contributions
Contributions are very welcomed, either on the documentation or on
the code.
You may:
- report any issue
you've encountered;
- fork and create a pull request.
License
ISC © Julien Fontanet