@f/iterator-symbol

The iterator symbol.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Dec 21, 2015Dec 21, 2015Minified + gzip package size for @f/iterator-symbol in KB

Readme

iterator-symbol

Build status Git tag NPM version Code style

The iterator symbol.

Installation

$ npm install @f/iterator-symbol

Usage

var iteratorSymbol = require('@f/iterator-symbol')

var myIterable = {}
myIterable[iteratorSymbol] = function * () {
    yield 1;
    yield 2;
    yield 3;
}
Array.from(myIterable) // [1, 2, 3]

License

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.