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