comparePoint

fun comparePoint(node: Node, offset: Int): Short(source)

The comparePoint() method of the Range interface determines whether a specified point is before, within, or after the Range. The point is specified by a reference node and an offset within that node.

MDN Reference