Members
Methods
append(element) → {LinkedList}
Append new element to the end of the list
- Source:
Parameters:
Name | Type | Description |
---|---|---|
element |
Returns:
- Type:
-
LinkedList
insert(newElement, elementBefore) → {LinkedList}
Insert new element to the list after elementBefore
- Source:
Parameters:
Name | Type | Description |
---|---|---|
newElement |
||
elementBefore |
Returns:
- Type:
-
LinkedList
isEmpty() → {boolean}
Return true if list is empty
- Source:
Returns:
- Type:
-
boolean
remove(element) → {LinkedList}
Remove element from the list
- Source:
Parameters:
Name | Type | Description |
---|---|---|
element |
Returns:
- Type:
-
LinkedList
toArray() → {Array}
Return array of elements from first to last
- Source:
Returns:
- Type:
-
Array