@tsdotnet/linked-list
Version:
A doubly (bidirectional) linked list. Acts as a safe, value focused wrapper for a linked-node-list.
30 lines (21 loc) • 1.17 kB
Markdown
#  tsdotnet / linked-list
[](https://github.com/tsdotnet/linked-list/blob/master/LICENSE)


[](https://www.npmjs.com/package/@tsdotnet/linked-list)
A doubly (bidirectional) linked list. Acts as a safe, value focused wrapper for a [linked-node-list](https://github.com/tsdotnet/linked-node-list).
## Docs
[tsdotnet.github.io/linked-list](https://tsdotnet.github.io/linked-list/)
This value focused linked list offers a safe to use node interface that only generates externally accessible nodes on demand.
```typescript
interface LinkedListNode<T>
{
list: LinkedList<T>;
previous: LinkedListNode<T> | undefined;
next: LinkedListNode<T> | undefined;
value: T;
addBefore (entry: T): void;
addAfter (entry: T): void;
remove (): void;
}
```