Data stored on the node
The previous node in the list
The next link in the list
The list this node belongs to
The list this node belongs to
The next link in the list
The previous node in the list
Data stored on the node
Get the index of this node
new LinkedList(1, 2, 3).head.index; // 0
Alias to .val
new LinkedList(1, 2, 3).head.value; // 1
Insert new val after this node
new LinkedList(1, 2).tail.insertAfter(3); // 1 <=> 2 <=> 3
Data to be saved in the node
Insert a new node before this one
new LinkedList(2, 3).head.insertBefore(1); // 1 <=> 2 <=> 3
Data to save in the node
Remove this node
new LinkedList(1, 2, 3, 4).tail.remove(); // 1 <=> 2 <=> 3
Generated using TypeDoc
The class which represents one link or node in a linked list