This package has been deprecated

Author message:

No longer maintained.

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

Dependents (0)

Package Sidebar

Install

npm i enumerable-prop

Weekly Downloads

1

Version

0.1.3

License

MIT

Last publish

Collaborators

  • codeactual