[F] positionInRange
check whether a position belongs to a range (excluding the start and end pos)
i.e. <range.pos>{
remark: if range.pos is -1 means no start point found, so return false if range.end is -1 means no end point found, so return true if position is greater than range.pos
Parameters
Parameter | Type |
---|---|
position | number |
range | TextRange |
Returns
boolean