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>;
}§Methods
§
entries(): IterableIterator<[number, TNode]>
[src]Returns an array of key, value pairs for every entry in the list.
§
forEach(callbackfn: (
[src]value: TNode,
key: number,
parent: NodeListOf<TNode>,
) => void, thisArg?: any): voidPerforms 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.