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.

MDN Reference