Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The has() method of the Highlight interface returns a boolean indicating whether a Range object exists in a Highlight object or not.
Highlight is a Set-like object, so this is similar to using Set.has().