UNPKG

ts-ds-tool

Version:

Data structure and algorithm of TypeScript

21 lines (20 loc) 349 B
export class DoubleLinkListNode { constructor(value) { this.value = value; } setNext(node) { this.next = node; } setPre(node) { this.pre = node; } get Next() { return this.next; } get Prev() { return this.pre; } toString() { return `${this.value}`; } }