Home Manual Reference Source

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 measure = await import( '@comparison-sorting/quick-sort' ) ;
// or
import measure from '@comparison-sorting/quick-sort' ;