NodeList
objects are collections of nodes, usually returned by properties such as Node.childNodes
and methods such as document.querySelectorAll()
.The number of nodes in the NodeList
.
Promise<number>
Returns an iterator
, allowing code to go through all key/value pairs contained in the collection. (In this case, the keys are numbers starting from 0
and the values are nodes.)
Promise<>
Executes a provided function once per NodeList
element, passing the element as an argument to the function.
Promise<>
Returns an item in the list by its index, or null
if the index is out-of-bounds.
number
. index
is the index of the node to be fetched. The index is zero-based.SuperNode
Returns an iterator
, allowing code to go through all the keys of the key/value pairs contained in the collection. (In this case, the keys are numbers starting from 0
.)
Promise<>
Returns an iterator
allowing code to go through all values (nodes) of the key/value pairs contained in the collection.
Promise<>