htc 7ca38fdcbb 善行少年PC端首次提交(基础版) před 10 měsíci
..
.github 7ca38fdcbb 善行少年PC端首次提交(基础版) před 10 měsíci
test 7ca38fdcbb 善行少年PC端首次提交(基础版) před 10 měsíci
.eslintrc 7ca38fdcbb 善行少年PC端首次提交(基础版) před 10 měsíci
.nycrc 7ca38fdcbb 善行少年PC端首次提交(基础版) před 10 měsíci
CHANGELOG.md 7ca38fdcbb 善行少年PC端首次提交(基础版) před 10 měsíci
LICENSE 7ca38fdcbb 善行少年PC端首次提交(基础版) před 10 měsíci
README.md 7ca38fdcbb 善行少年PC端首次提交(基础版) před 10 měsíci
index.d.ts 7ca38fdcbb 善行少年PC端首次提交(基础版) před 10 měsíci
index.js 7ca38fdcbb 善行少年PC端首次提交(基础版) před 10 měsíci
package.json 7ca38fdcbb 善行少年PC端首次提交(基础版) před 10 měsíci
tsconfig.json 7ca38fdcbb 善行少年PC端首次提交(基础版) před 10 měsíci

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