Home Manual Reference Source

Overview

Installation

Can be managed using jspm or npm.

jspm

jspm install npm:@iterable-iterator/mapping

npm

npm install @iterable-iterator/mapping --save

Usage

The code needs a ES2015+ polyfill to work, for example regenerator-runtime/runtime.

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

Then

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

Example