Neatly Punctuated Musings
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

enumerable-prop

0.1.3 • Public • Published

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

Keywords

none

install

npm i enumerable-prop

Downloadsweekly downloads

5

version

0.1.3

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar