comparePoint

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

Returns −1 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range.

MDN Reference