Home Manual Reference Source

Overview

Installation

Can be managed using jspm or npm.

jspm

jspm install npm:@aureooms/js-collections-defaultdict

npm

npm install @aureooms/js-collections-defaultdict --save

Usage

The code needs a ES2015+ polyfill to work, for example @babel/polyfill.

require( '@babel/polyfill' ) ;
// or
import '@babel/polyfill' ;

Then

const number = require( '@aureooms/js-collections-defaultdict' ) ;
// or
import number from '@aureooms/js-collections-defaultdict' ;

Examples

See Python's docs: