1.1.5 • Published 10 months ago

doublell v1.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

doublell

Downloads Size

A very minimal Double Linked List implementation for browsers and Node.

Provided as:

  • CommonJS
  • ES Module

Usage Examples

const list = new DoubleLinkedList<number>();
const node1 = list.append(1);
const node0 = list.prepend(0);
const node0_5 = list.insertBeforeNode(node1, 0.5);
const node1_5 = list.insertAfterNode(node1, 1.5);
console.log(list.getLength());
console.log(list.getHead()?.value);
console.log(list.getTail()?.value);
console.log(node0.nextNode?.value);
console.log(node1.previousNode?.value);
list.remove(node0);
list.clear();

API Docs

Thanks

Thanks for checking it out. Feel free to create issues or otherwise provide feedback.

Be sure to check out our other TypeScript OSS projects as well.

1.1.5

10 months ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago