Skip to content

NodeList

Types

t

type t<'node> = WebAPI.DOM.nodeList<'node> = private {
length: int,
}

Record fields

length
int

Returns the number of nodes in the collection. Read more on MDN

Values

item

Returns the node with index index from the collection. The nodes are sorted in tree order. Read more on MDN

let item: (WebAPI.DOM.nodeList<'tNode>, int) => Null.t<'tNode>

Parameters

int

Return type

Null.t<'tNode>