doubly-linky
v0.1.2
Published
A tiny (around 2.1 kb, 850 bytes gzipped) doubly linked list.
Downloads
6
Maintainers
Readme
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.