NodeList
NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll().
interface NodeList {
[index: number]: Node;
readonly length: number;
[[Symbol.iterator]](): IterableIterator<Node>;
entries(): IterableIterator<[number, Node]>;
item(index: number): Node | null;
keys(): IterableIterator<number>;
values(): IterableIterator<Node>;
}§Methods
§
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.