max_liu b7ab7c8514 chore: 更新node_modules依赖文件 2 viikkoa sitten
..
.github b7ab7c8514 chore: 更新node_modules依赖文件 2 viikkoa sitten
test b7ab7c8514 chore: 更新node_modules依赖文件 2 viikkoa sitten
.eslintrc b7ab7c8514 chore: 更新node_modules依赖文件 2 viikkoa sitten
.nycrc b7ab7c8514 chore: 更新node_modules依赖文件 2 viikkoa sitten
CHANGELOG.md b7ab7c8514 chore: 更新node_modules依赖文件 2 viikkoa sitten
LICENSE b7ab7c8514 chore: 更新node_modules依赖文件 2 viikkoa sitten
README.md b7ab7c8514 chore: 更新node_modules依赖文件 2 viikkoa sitten
index.d.ts b7ab7c8514 chore: 更新node_modules依赖文件 2 viikkoa sitten
index.js b7ab7c8514 chore: 更新node_modules依赖文件 2 viikkoa sitten
package.json b7ab7c8514 chore: 更新node_modules依赖文件 2 viikkoa sitten
tsconfig.json b7ab7c8514 chore: 更新node_modules依赖文件 2 viikkoa sitten

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