The Range.intersectsNode() method returns a boolean indicating whether the given Node intersects the Range.
Range.intersectsNode()
MDN Reference