Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/index.ts>dom.NodeList

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.NodeList
import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/index.ts";
const { NodeList } = dom;

NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll().

Index Signatures

[index: number]: Node

Properties

readonly
length: number

Returns the number of nodes in the collection.

Methods

item(index: number): Node | null

Returns the node with index index from the collection. The nodes are sorted in tree order.

forEach(callbackfn: (
value: Node,
key: number,
parent: NodeList,
) => void
, thisArg?: any
): void

Performs the specified action for each node in an list.