Home Manual Reference Source

Usage

:warning: The code needs a ES2015+ polyfill to run (regeneratorRuntime), for instance 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 functools = await import( '@functional-abstraction/functools' ) ;
// or
import * as functools from '@functional-abstraction/functools' ;