JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q53338F
  • License MIT

Doubly linked list in TypeScript

Package Exports

  • doubly
  • doubly/dist/cjs/index.js
  • doubly/dist/esm/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (doubly) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Name

Description

Installation

npm i --save dualy

Usage

Supports both ESM and CommonJS

// esm
import Doubly from 'doubly`
// commonjs
const Doubly = require('doubly').default

Methods

at(index: number)

const list = new Doubly()
list.push(100)
list.at(0) // 100
list.at(-1) // LinklyError: At negative index not supported

concat(list: Doubly)

// push
const list = new Linkly()
list.push(100)
list.push(200)
list.push(300)

const list2 = new Linkly()
list.push(400)
list.push(500)
list.push(600)

const list3 = list.concat()

... TODO

License

MIT