Private
_firstPrivate
_lastPrivate
_sizeThe length of the list.
Constant.
This is equivalent to size
.
This property is deprecated.
Create an iterator over the values in the list.
A new iterator starting with the first value.
Constant.
Add a value to the beginning of the list.
The value to add to the beginning of the list.
The list node which holds the value.
Constant.
Add a value to the end of the list.
The value to add to the end of the list.
The list node which holds the value.
Constant.
Insert a value after a specific node in the list.
The value to insert after the reference node.
The reference node of interest. If this is null
,
the value will be added to the end of the list.
The list node which holds the value.
The reference node must be owned by the list.
Constant.
Insert a value before a specific node in the list.
The value to insert before the reference node.
The reference node of interest. If this is null
,
the value will be added to the beginning of the list.
The list node which holds the value.
The reference node must be owned by the list.
Constant.
Create an iterator over the nodes in the list.
A new iterator starting with the first node.
Constant.
Remove and return the value at the end of the list.
The removed value, or undefined
if the list is empty.
Constant.
This is equivalent to removeLast
.
Remove and return the value at the beginning of the list.
The removed value, or undefined
if the list is empty.
Constant.
Remove and return the value at the end of the list.
The removed value, or undefined
if the list is empty.
Constant.
Remove a specific node from the list.
Create a reverse iterator over the values in the list.
A new iterator starting with the last value.
Constant.
Create a reverse iterator over the nodes in the list.
A new iterator starting with the last node.
Constant.
Add a value to the beginning of the list.
The value to add to the beginning of the list.
Constant.
This is equivalent to addFirst
.
Remove and return the value at the beginning of the list.
The removed value, or undefined
if the list is empty.
Constant.
This is equivalent to removeFirst
.
Generated using TypeDoc
A generic doubly-linked list.