Mohammad Asif cf937194cb Removed un-waned things 1. | 5 mesi fa | |
---|---|---|
.. | ||
.github | 5 mesi fa | |
test | 5 mesi fa | |
.eslintrc | 5 mesi fa | |
.nycrc | 5 mesi fa | |
CHANGELOG.md | 5 mesi fa | |
LICENSE | 5 mesi fa | |
README.md | 5 mesi fa | |
index.js | 5 mesi fa | |
package.json | 5 mesi fa |
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