Skip to content

Doubly-linked List datastructure class with full TypeScript support

License

Notifications You must be signed in to change notification settings

foxkit-js/list

Repository files navigation

Foxkit List

Foxkit List is a Doubly-linked List datastructure for JavaScript and TypeScript.

Installation

Install the package using the package manager used by your project:

npm install @foxkit/list
pnpm add @foxkit/list
yarn add @foxkit/list

Usage

Create a new list and use methods to add and interact with data:

import { List } from "@foxkit/list";

const list = new List(["foo", "bar"]);
list.push("baz");
list.forEach(val => console.log(val));
/* logs:
 * "foo
 * "bar"
 * "baz"
 */

See Documentation for further information.