Protected
_nodesThe index parameter is a number that represents the position of the element you want to retrieve from the array.
The method is returning the element at the specified index in the _nodes
array. If the element exists, it
will be returned. If the element does not exist (i.e., the index is out of bounds), null
will be returned.
The insert function adds a value at a specified index in an array.
The index parameter specifies the position at which the value should be inserted in the array. It is a number that represents the index of the array where the value should be inserted. The index starts from 0, so the first element of the array has an index of 0, the second element has
The value parameter represents the value that you want to insert into the array at the specified index.
The splice method returns an array containing the removed elements, if any. In this case, since no elements are being removed, an empty array will be returned.
The function "offerFirst" adds a value to the beginning of an array.
The value parameter represents the value that you want to add to the beginning of the array.
The return value of the offerFirst
function is the new length of the array _nodes
after adding the
value
at the beginning.
The remove function removes an element from an array at a specified index.
The index parameter specifies the position of the element to be removed from the array. It is a number that represents the index of the element to be removed.
The method is returning an array containing the removed element.
The set function assigns a value to a specific index in an array.
The index parameter is a number that represents the position of the element in the array that you want to set a new value for.
The value parameter represents the new value that you want to set at the specified index in the _nodes array.
The value that is being set at the specified index in the _nodes
array.
Generated using TypeDoc
The get function returns the element at the specified index in an array, or null if the index is out of bounds.