mirror-rhinstaller-node-cache/stop-iteration-iterator
2026-06-15 08:05:17 +00:00
..
test 59aa210f76a766832e4013c3105697047c38ba1ef2a752c58a10e46a4664c272 package.json 2026-06-15 08:05:17 +00:00
.eslintrc 59aa210f76a766832e4013c3105697047c38ba1ef2a752c58a10e46a4664c272 package.json 2026-06-15 08:05:17 +00:00
.nycrc 59aa210f76a766832e4013c3105697047c38ba1ef2a752c58a10e46a4664c272 package.json 2026-06-15 08:05:17 +00:00
CHANGELOG.md 59aa210f76a766832e4013c3105697047c38ba1ef2a752c58a10e46a4664c272 package.json 2026-06-15 08:05:17 +00:00
index.d.ts 59aa210f76a766832e4013c3105697047c38ba1ef2a752c58a10e46a4664c272 package.json 2026-06-15 08:05:17 +00:00
index.js 59aa210f76a766832e4013c3105697047c38ba1ef2a752c58a10e46a4664c272 package.json 2026-06-15 08:05:17 +00:00
LICENSE 59aa210f76a766832e4013c3105697047c38ba1ef2a752c58a10e46a4664c272 package.json 2026-06-15 08:05:17 +00:00
package.json 59aa210f76a766832e4013c3105697047c38ba1ef2a752c58a10e46a4664c272 package.json 2026-06-15 08:05:17 +00:00
README.md 59aa210f76a766832e4013c3105697047c38ba1ef2a752c58a10e46a4664c272 package.json 2026-06-15 08:05:17 +00:00
tsconfig.json 59aa210f76a766832e4013c3105697047c38ba1ef2a752c58a10e46a4664c272 package.json 2026-06-15 08:05:17 +00:00

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