A range represents an ordered pair of two positions and is used to reference an area of text inside of a TextEditor object. Range objects are immutable.
Returns a new range object representing the portion of the specified range that overlaps (intersects) the range instance. Undefined is returned if the compared ranges do not overlap.