Home Manual Reference Source

Overview

Installation

Can be managed using yarn, npm, or jspm.

yarn

yarn add @iterable-iterator/round-robin

npm

npm install @iterable-iterator/round-robin --save

jspm

jspm install npm:@iterable-iterator/round-robin

Usage

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

First, require the polyfill at the entry point of your application

await import( 'regenerator-runtime/runtime.js' ) ;
// or
import 'regenerator-runtime/runtime.js' ;

Then, import the library where needed

const roundRobin = await import( '@iterable-iterator/round-robin' ) ;
// or
import * as roundRobin from '@iterable-iterator/round-robin' ;

Examples

More examples in the test files.