cloneRange

The Range.cloneRange() method returns a Range object with boundary points identical to the cloned Range.

MDN Reference