isPointInRange

fun isPointInRange(node: Node, offset: Int): Boolean(source)

The isPointInRange() method of the Range interface determines whether a specified point is within the Range.

MDN Reference