Class DoublyLinkedList<T>
Type Parameters
- T extends {
createdAt: Date;
id: string;
}
Constructors
constructor
- new DoublyLinkedList<T>(messages?): DoublyLinkedList<T>
Type Parameters
- T extends {
createdAt: Date;
id: string;
}
Parameters
Optional
messages: T | T[]
Methods
find
- find(id): null | T
Returns null | T
has
- has(id): boolean
Returns boolean
insertSorted
- insertSorted(value): void
Returns void
remove
- remove(id): void
Returns void
toArray
- toArray(): T[]
Returns T[]