Home Manual Reference Source

Overview

Installation

Can be managed using jspm or npm.

jspm

jspm install npm:@heap-data-structure/specification

npm

npm install @heap-data-structure/specification --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 spec = await import( '@heap-data-structure/specification' ) ;
// or
import * as spec from '@heap-data-structure/specification' ;

Examples