Highlight: keys() method
Baseline
2025
Newly available
Since June 2025, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
The keys() method of the Highlight interface is an alias for the values() method.
Highlight is a Set-like object, so this is similar to using Set.keys().
Syntax
js
keys()
Parameters
None.
Return value
A new iterator object containing each Range object in the given Highlight, in insertion order.
Specifications
| Specification |
|---|
| ECMAScript® 2026 Language Specification> # sec-set.prototype.keys> |
Browser compatibility
Loading…