Interface NodeListOf<TNode>

Type Parameters

Hierarchy

Indexable

[index: number]: TNode

Properties

length: number

Returns the number of nodes in the collection.

MDN Reference

Methods

  • Returns an array of key, value pairs for every entry in the list.

    Returns IterableIterator<[number, TNode]>

  • Performs the specified action for each node in an list.

    Parameters

    • callbackfn: ((value, key, parent) => void)

      A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.

        • (value, key, parent): void
        • Parameters

          • value: TNode
          • key: number
          • parent: NodeListOf<TNode>

          Returns void

    • Optional thisArg: any

      An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

    Returns void

  • Parameters

    • index: number

    Returns TNode