UNPKG

@softvisio/core

Version:
25 lines (20 loc) 378 B
export default class DoublyLinkedListEntry { value; list; previousEntry; nextEntry; constructor ( value ) { this.value = value; } // properties get isFirst () { return !this.previousEntry; } get isLast () { return !this.nextEntry; } // public delete () { this.list?.delete( this ); } }