htc 7ca38fdcbb 善行少年PC端首次提交(基础版) 2 هفته پیش
..
.github 7ca38fdcbb 善行少年PC端首次提交(基础版) 2 هفته پیش
test 7ca38fdcbb 善行少年PC端首次提交(基础版) 2 هفته پیش
.eslintrc 7ca38fdcbb 善行少年PC端首次提交(基础版) 2 هفته پیش
.nycrc 7ca38fdcbb 善行少年PC端首次提交(基础版) 2 هفته پیش
CHANGELOG.md 7ca38fdcbb 善行少年PC端首次提交(基础版) 2 هفته پیش
LICENSE 7ca38fdcbb 善行少年PC端首次提交(基础版) 2 هفته پیش
README.md 7ca38fdcbb 善行少年PC端首次提交(基础版) 2 هفته پیش
index.d.ts 7ca38fdcbb 善行少年PC端首次提交(基础版) 2 هفته پیش
index.js 7ca38fdcbb 善行少年PC端首次提交(基础版) 2 هفته پیش
package.json 7ca38fdcbb 善行少年PC端首次提交(基础版) 2 هفته پیش
tsconfig.json 7ca38fdcbb 善行少年PC端首次提交(基础版) 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