isSameNode

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

The isSameNode() method of the Node interface is a legacy alias the for the === strict equality operator. That is, it tests whether two nodes are the same (in other words, whether they reference the same object).

MDN Reference