enumerable-prop

Make a class enumerable with a common-case iterator

enumerable-prop

Make a class enumerable with a common-case iterator

    var enumerableProp = require('enumerable-prop');
 
    function Klass() {
      // Add `this.list` 
      enumerableProp(this);
 
      // Or `this.messages` instead 
      enumerableProp(this, {prop: 'messages'});
    }

NPM

npm install enumerable-prop

component

component install codeactual/enumerable-prop

Return a new EnumerableProp instance.

MIT

npm test