UNPKG

@node-dlc/core

Version:
15 lines (13 loc) 289 B
export class LinkedListNode<T> { public value: T; public prev: LinkedListNode<T>; public next: LinkedListNode<T>; /** * Creates a linked list node with the specified data */ constructor(value: T) { this.value = value; this.prev = null; this.next = null; } }