|
|
hace 2 semanas | |
|---|---|---|
| .. | ||
| .github | hace 2 semanas | |
| test | hace 2 semanas | |
| .eslintrc | hace 2 semanas | |
| .nycrc | hace 2 semanas | |
| CHANGELOG.md | hace 2 semanas | |
| LICENSE | hace 2 semanas | |
| README.md | hace 2 semanas | |
| index.d.ts | hace 2 semanas | |
| index.js | hace 2 semanas | |
| package.json | hace 2 semanas | |
| tsconfig.json | hace 2 semanas | |
Firefox 17-26 iterators throw a StopIteration object to indicate "done". This normalizes it.
var stopIterationIterator = require('stop-iteration-iterator');
var s = new Set([1, 2]);
var iterator = stopIterationIterator(s.keys());
iterator.next(); // { done: false, value: 1 }
Simply clone the repo, npm install, and run npm test