Filters out elements and returns a new List
The original Lise
remains unaltered.
The filter function.
The new List
Returns the first encountered element with matching value.
The tested value.
The first matching ListNode
, undefined
if no match.
Returns an array of all encountered elements with matching value.
The tested value.
An array of matching elements.
Checks whether a value is present in the list.
The tested value.
true
if the value is found, false
otherwise
Applies a transformation on each element and returns a new List
.
The original List
remains unaltered.
The map function.
The new List
Removes the last element of the list.
The removed ListNode
or undefined
if nothing was removed.
Adds a ListNode
with input value at the end of the list.
The value attached to the element.
The added ListNode
.
Accumulates the result of specific operation on each value and
returns the accumulation as a single result.
The original List
remains unaltered.
The filter function.
The new List
.
Removes the first element of the list.
The removed element or undefined
if nothing was removed.
Creates an array from the List
values.
The array of List
values.
Adds an element with input value at the front of the list.
The value attached to the element.
The added element.
Generated using TypeDoc
Represents a linked list, that can be a
SinglyLinkedList
or aDoublyLinkedList
.