package
Firefox 17-26 iterators throw a StopIteration object to indicate "done". This normalizes it.
npm install stop-iteration-iteratorGitHub-flavored package documentation.
Across all versions, last 30 days.
442,995,017 in 30 days
Runtime metadata.
Tagged topics.
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
Estimated unpacked size across 10 packages.
253.4 kB
Includes dependencies.