htc 7ca38fdcbb 善行少年PC端首次提交(基础版) hace 10 meses
..
.github 7ca38fdcbb 善行少年PC端首次提交(基础版) hace 10 meses
test 7ca38fdcbb 善行少年PC端首次提交(基础版) hace 10 meses
.eslintrc 7ca38fdcbb 善行少年PC端首次提交(基础版) hace 10 meses
.nycrc 7ca38fdcbb 善行少年PC端首次提交(基础版) hace 10 meses
CHANGELOG.md 7ca38fdcbb 善行少年PC端首次提交(基础版) hace 10 meses
LICENSE 7ca38fdcbb 善行少年PC端首次提交(基础版) hace 10 meses
README.md 7ca38fdcbb 善行少年PC端首次提交(基础版) hace 10 meses
index.d.ts 7ca38fdcbb 善行少年PC端首次提交(基础版) hace 10 meses
index.js 7ca38fdcbb 善行少年PC端首次提交(基础版) hace 10 meses
package.json 7ca38fdcbb 善行少年PC端首次提交(基础版) hace 10 meses
tsconfig.json 7ca38fdcbb 善行少年PC端首次提交(基础版) hace 10 meses

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