Skip to main content
Module

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

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

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.