@iterable-iterator/next

2.0.1 • Public • Published

⏭️ @iterable-iterator/next

Iterator next function for JavaScript. See docs.

⚠️ Depending on your environment, the code may require regeneratorRuntime to be defined, for instance by importing regenerator-runtime/runtime.

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 Version Tests Dependencies Dev dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size

Package Sidebar

Install

npm i @iterable-iterator/next

Weekly Downloads

11

Version

2.0.1

License

AGPL-3.0

Unpacked Size

493 kB

Total Files

14

Last publish

Collaborators

  • raskat
  • aureooms