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: number — The index of the node or -1 if the node is not found.