Florian's Little Iterator Library
An iterator library that is so simple you could have written it yourself.
ECMAScriopt's new (async) generator functions are powerful and almost seem to be designed to build libraries like these.
What's Included
- Sync iterator version
- Async iterator version
- itertools Feature Parity
- Type Declarations
- Typedoc
- Basic Tests
- Advanced Tests
- Usable everywhere
- Deno
- Node Modules
- Node Require
- Browser Imports
- 1.0 Release
How to Use
Deno
// index.ts;
Run via deno index.ts
Node 11+ Modules
// index.mjs;
Run via node --experimental-modules index.mjs
Node Require
// index.jsconst lilit = ;
Run via node index.js
Browser Imports
// script.js;
Load via <script type="module" src="./script.js"></script>
Other
To see what else is availabe, browse the package contents.