Foxkit List is a Doubly-linked List datastructure for JavaScript and TypeScript.
Install the package using the package manager used by your project:
npm install @foxkit/list
pnpm add @foxkit/list
yarn add @foxkit/list
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.