NodeList
NodeList
A list of nodes. Does not have any of the usual Array methods, such as map, filter, or forEach, however it is iterable. It has a length property and indices 0..length-1
Examples
Iteration
for (let node of nodeList) {
...
}Convert to Array
let nodeArray = Array.from(nodeList);