isEqualNode

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

Returns whether node and otherNode have the same properties.

MDN Reference