Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@f/iterator-symbol

micro-js61MIT1.0.0

The iterator symbol.

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