Skip to content

@ralphschuler.webgl shader factory.<internal>.NodeList

github-actions edited this page Nov 26, 2023 · 1 revision

Interface: NodeList

@ralphschuler/webgl-shader-factory.<internal>.NodeList

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

MDN Reference

Indexable

▪ [index: number]: Node

Table of contents

Properties

Methods

Properties

length

Readonly length: number

Returns the number of nodes in the collection.

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16316

Methods

forEach

forEach(callbackfn, thisArg?): void

Performs the specified action for each node in an list.

Parameters

Name Type Description
callbackfn (value: Node, key: number, parent: NodeList) => void A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
thisArg? any An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

Returns

void

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16328


item

item(index): null | Node

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

MDN Reference

Parameters

Name Type
index number

Returns

null | Node

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16322

Typescript Libraries

Modules

Namespaces

Clone this wiki locally