codeql-action/node_modules/stop-iteration-iterator
Henry Mercer 0a11e3fdd9 Bump packages to fix linter 2023-01-18 21:00:07 +00:00
..
.github Bump packages to fix linter 2023-01-18 21:00:07 +00:00
test Bump packages to fix linter 2023-01-18 21:00:07 +00:00
.eslintrc Bump packages to fix linter 2023-01-18 21:00:07 +00:00
.nycrc Bump packages to fix linter 2023-01-18 21:00:07 +00:00
CHANGELOG.md Bump packages to fix linter 2023-01-18 21:00:07 +00:00
LICENSE Bump packages to fix linter 2023-01-18 21:00:07 +00:00
README.md Bump packages to fix linter 2023-01-18 21:00:07 +00:00
index.js Bump packages to fix linter 2023-01-18 21:00:07 +00:00
package.json Bump packages to fix linter 2023-01-18 21:00:07 +00:00

README.md

stop-iteration-iterator Version Badge

github actions coverage License Downloads

npm badge

Firefox 17-26 iterators throw a StopIteration object to indicate "done". This normalizes it.

Usage

var stopIterationIterator = require('stop-iteration-iterator');

var s = new Set([1, 2]);

var iterator = stopIterationIterator(s.keys());

iterator.next(); // { done: false, value: 1 }

Tests

Simply clone the repo, npm install, and run npm test