Highlight: keys() method

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

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

keys()

Return value

A new iterator object containing each Range object in the given Highlight, in insertion order.

Specifications

Specification
ECMAScript Language Specification
# sec-set.prototype.keys

Browser compatibility

BCD tables only load in the browser

See also