Home Manual Reference Source

Overview

Installation

Can be managed using jspm or npm.

jspm

jspm install npm:@data-structure/deque

npm

npm install @data-structure/deque --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 {deque} = await import( '@data-structure/deque' ) ;
// or
import {deque} from '@data-structure/deque' ;

Examples

See Python's docs: