stop-iteration-iterator (1.1.0)
Published 2026-02-24 14:05:32 +00:00 by atheaadmin
Installation
registry=npm install stop-iteration-iterator@1.1.0"stop-iteration-iterator": "1.1.0"About this package
stop-iteration-iterator 
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
Dependencies
Dependencies
| ID | Version |
|---|---|
| es-errors | ^1.3.0 |
| internal-slot | ^1.1.0 |
Development Dependencies
| ID | Version |
|---|---|
| @arethetypeswrong/cli | ^0.17.1 |
| @ljharb/eslint-config | ^21.1.1 |
| @ljharb/tsconfig | ^0.2.2 |
| @types/tape | ^5.6.5 |
| auto-changelog | ^2.5.0 |
| encoding | ^0.1.13 |
| eslint | =8.8.0 |
| in-publish | ^2.0.1 |
| npmignore | ^0.3.1 |
| nyc | ^10.3.2 |
| safe-publish-latest | ^2.0.0 |
| tape | ^5.9.0 |
| typescript | next |
Keywords
stopiteration
iterator
firefox
