isEqualNode

fun isEqualNode(otherNode: Node?): Boolean(source)

The isEqualNode() method of the Node interface tests whether two nodes are equal.

MDN Reference