setter-method
getter setter methods without the boilerplate
Installation
$ packin add jkroso/setter-method
then in your app:
var addSetter =
API
addSetter(object, property, default)
create a chainable getter/setter method on obj
var object = {}; // create methods and default values;;; // set valuesobject width1200 height800; // get valuesobjectwidth; // => 1200objectcolor; // => 'aliceblue'
Running the tests
Just run make
and navigate your browser to the test directory.