Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

NodeListOf

interface NodeListOf <TNode extends Node> extends NodeList {
[index: number]: TNode;
[[Symbol.iterator]](): IterableIterator<TNode>;
entries(): IterableIterator<[number, TNode]>;
forEach(callbackfn: (
value: TNode,
key: number,
parent: NodeListOf<TNode>,
) => void
, thisArg?: any): void;
item(index: number): TNode;
keys(): IterableIterator<number>;
values(): IterableIterator<TNode>;
}

§Type Parameters

§
TNode extends Node
[src]

§Extends

§Index Signatures

§
[index: number]: TNode

§Methods

§
[[Symbol.iterator]](): IterableIterator<TNode>
[src]
§
entries(): IterableIterator<[number, TNode]>
[src]

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

§
forEach(callbackfn: (
value: TNode,
key: number,
parent: NodeListOf<TNode>,
) => void
, thisArg?: any): void
[src]

Performs the specified action for each node in an list.

@param callbackfn

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

@param thisArg

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

§
item(index: number): TNode
[src]
§
keys(): IterableIterator<number>
[src]

Returns an list of keys in the list.

§
values(): IterableIterator<TNode>
[src]

Returns an list of values in the list.