Skip to content

Node.indexOf method

Node › indexOf

Official

Returns the index of the node or -1 if the node is not found.

Signature:

indexOf(other: Node): number

Parameters:

Parameter Type Description
other Node The node to find.

Returns: numberThe index of the node or -1 if the node is not found.