zhibo/live-streaming/client/node_modules/stop-iteration-iterator
2025-12-15 11:34:49 +08:00
..
.github 初始化 2025-12-15 11:34:49 +08:00
test 初始化 2025-12-15 11:34:49 +08:00
.eslintrc 初始化 2025-12-15 11:34:49 +08:00
.nycrc 初始化 2025-12-15 11:34:49 +08:00
CHANGELOG.md 初始化 2025-12-15 11:34:49 +08:00
index.d.ts 初始化 2025-12-15 11:34:49 +08:00
index.js 初始化 2025-12-15 11:34:49 +08:00
LICENSE 初始化 2025-12-15 11:34:49 +08:00
package.json 初始化 2025-12-15 11:34:49 +08:00
README.md 初始化 2025-12-15 11:34:49 +08:00
tsconfig.json 初始化 2025-12-15 11:34:49 +08: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