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