enumerable-prop

Make a class enumerable with a common-case iterator

npm install enumerable-prop
4 downloads in the last week
16 downloads in the last month

enumerable-prop

Make a class enumerable with a common-case iterator

Build Status

Example

    var enumerableProp = require('enumerable-prop');

    function Klass() {
      // Add `this.list`
      enumerableProp(this);

      // Or `this.messages` instead
      enumerableProp(this, {prop: 'messages'});
    }

Installation

NPM

npm install enumerable-prop

component

component install codeactual/enumerable-prop

API

Documentation

License

MIT

Tests

npm test
npm loves you