Package Exports
- doublell
- doublell/lib/cjs/exports.js
- doublell/lib/mjs/exports.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (doublell) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
doublell
A very minimal Double Linked List implementation.
Usage Examples
const list = new DoubleLinkedList<number>();
const node1 = list.append(1);
const node2 = list.prepend(2);
console.log(list.getLength());
console.log(list.getHead()?.value);
console.log(list.getTail()?.value);
console.log(node2.nextNode?.value);
console.log(node1.previousNode?.value);
list.remove(node2);
list.clear();
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.