doubly-linky
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

doubly-linky

A small TypeScript implementation of a doubly linked list.

Installation

This package is ESM only, targeting ES6.

npm install doubly-linky

Usage

import { DoublyLinkedList } from 'doubly-linky';

const list = new DoublyLinkedList(1, 2, 3);

// Item type can also be specified.
const list = new DoublyLinkedList<number>();

// Initializing with an array.
const list = new DoublyLinkedList(array);

API

As documented in API.md.

License

MIT

Package Sidebar

Install

npm i doubly-linky

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

8.59 kB

Total Files

6

Last publish

Collaborators

  • vissie