This class covers most LinkedNodeList use cases by assuming the node type includes a '.value' property.

Type Parameters

  • T

Hierarchy

Constructors

Accessors

  • get unsafeCount(): number
  • Returns the tracked number of nodes in the list. Since a LinkedNodeList is unprotected, it is possible to modify the chain and this count could get out of sync. To know the actual number of nodes, call .getCount() to iterate over each node.

    Returns

    Returns number

Methods

  • Copies the values of each node to an array (or array-like object).

    Returns

    The target array.

    Type Parameters

    • TDestination extends ArrayLikeWritable<any, TDestination>

    Parameters

    • array: TDestination

      The target array.

    • index: number = 0

      The starting index of the target array.

    Returns TDestination

  • Returns an iterable that selects the value of each node.

    Returns

    Returns Iterable<T>

Generated using TypeDoc