max_liu b7ab7c8514 chore: 更新node_modules依赖文件 преди 2 седмици
..
.github b7ab7c8514 chore: 更新node_modules依赖文件 преди 2 седмици
test b7ab7c8514 chore: 更新node_modules依赖文件 преди 2 седмици
.eslintrc b7ab7c8514 chore: 更新node_modules依赖文件 преди 2 седмици
.nycrc b7ab7c8514 chore: 更新node_modules依赖文件 преди 2 седмици
CHANGELOG.md b7ab7c8514 chore: 更新node_modules依赖文件 преди 2 седмици
LICENSE b7ab7c8514 chore: 更新node_modules依赖文件 преди 2 седмици
README.md b7ab7c8514 chore: 更新node_modules依赖文件 преди 2 седмици
index.d.ts b7ab7c8514 chore: 更新node_modules依赖文件 преди 2 седмици
index.js b7ab7c8514 chore: 更新node_modules依赖文件 преди 2 седмици
package.json b7ab7c8514 chore: 更新node_modules依赖文件 преди 2 седмици
tsconfig.json b7ab7c8514 chore: 更新node_modules依赖文件 преди 2 седмици

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