A small TypeScript implementation of a doubly linked list.
This package is ESM only, targeting ES6.
npm install doubly-linky
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);
As documented in API.md.