Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iterable-iterator/next
:next_track_button: Iterator next function for JavaScript
https://github.com/iterable-iterator/next
Last synced: 2 months 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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-11T04:16:25.000Z (3 months ago)
- Last Synced: 2024-10-19T02:26:27.228Z (3 months ago)
- Language: JavaScript
- Homepage: https://iterable-iterator.github.io/next
- Size: 2.08 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
```[![License](https://img.shields.io/github/license/iterable-iterator/next.svg)](https://raw.githubusercontent.com/iterable-iterator/next/main/LICENSE)
[![Version](https://img.shields.io/npm/v/@iterable-iterator/next.svg)](https://www.npmjs.org/package/@iterable-iterator/next)
[![Tests](https://img.shields.io/github/actions/workflow/status/iterable-iterator/next/ci.yml?branch=main&event=push&label=tests)](https://github.com/iterable-iterator/next/actions/workflows/ci.yml?query=branch:main)
[![Dependencies](https://img.shields.io/librariesio/github/iterable-iterator/next.svg)](https://github.com/iterable-iterator/next/network/dependencies)
[![GitHub issues](https://img.shields.io/github/issues/iterable-iterator/next.svg)](https://github.com/iterable-iterator/next/issues)
[![Downloads](https://img.shields.io/npm/dm/@iterable-iterator/next.svg)](https://www.npmjs.org/package/@iterable-iterator/next)[![Code issues](https://img.shields.io/codeclimate/issues/iterable-iterator/next.svg)](https://codeclimate.com/github/iterable-iterator/next/issues)
[![Code maintainability](https://img.shields.io/codeclimate/maintainability/iterable-iterator/next.svg)](https://codeclimate.com/github/iterable-iterator/next/trends/churn)
[![Code coverage (cov)](https://img.shields.io/codecov/c/gh/iterable-iterator/next/main.svg)](https://codecov.io/gh/iterable-iterator/next)
[![Code technical debt](https://img.shields.io/codeclimate/tech-debt/iterable-iterator/next.svg)](https://codeclimate.com/github/iterable-iterator/next/trends/technical_debt)
[![Documentation](https://iterable-iterator.github.io/next/badge.svg)](https://iterable-iterator.github.io/next/source.html)
[![Package size](https://img.shields.io/bundlephobia/minzip/@iterable-iterator/next)](https://bundlephobia.com/result?p=@iterable-iterator/next)