https://github.com/iterable-iterator/next
:next_track_button: Iterator next function for JavaScript
https://github.com/iterable-iterator/next
Last synced: about 1 year ago
JSON representation
:next_track_button: Iterator next function for JavaScript
- Host: GitHub
- URL: https://github.com/iterable-iterator/next
- Owner: iterable-iterator
- License: agpl-3.0
- Created: 2021-04-27T15:17:12.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-02-20T02:58:32.000Z (over 1 year ago)
- Last Synced: 2025-02-28T13:17:56.574Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://iterable-iterator.github.io/next
- Size: 1.97 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
:next_track_button: [@iterable-iterator/next](https://iterable-iterator.github.io/next)
==
Iterator next function for JavaScript.
See [docs](https://iterable-iterator.github.io/next/index.html).
> :warning: Depending on your environment, the code may require
> `regeneratorRuntime` to be defined, for instance by importing
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).
```js
import {iter} from '@iterable-iterator/iter';
import {next, StopIteration} from '@iterable-iterator/next';
next(iter('ABC')); // A
next(iter('')); // throws StopIteration
// With default parameter
next(iter(''), 'x'); // x
```
[](https://raw.githubusercontent.com/iterable-iterator/next/main/LICENSE)
[](https://www.npmjs.org/package/@iterable-iterator/next)
[](https://github.com/iterable-iterator/next/actions/workflows/ci.yml?query=branch:main)
[](https://github.com/iterable-iterator/next/network/dependencies)
[](https://github.com/iterable-iterator/next/issues)
[](https://www.npmjs.org/package/@iterable-iterator/next)
[](https://codeclimate.com/github/iterable-iterator/next/issues)
[](https://codeclimate.com/github/iterable-iterator/next/trends/churn)
[](https://codecov.io/gh/iterable-iterator/next)
[](https://codeclimate.com/github/iterable-iterator/next/trends/technical_debt)
[](https://iterable-iterator.github.io/next/source.html)
[](https://bundlephobia.com/result?p=@iterable-iterator/next)