Highlight: keys()-Methode

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Die keys()-Methode der Highlight-Schnittstelle ist ein Alias für die values()-Methode.

Highlight ist ein Set-ähnliches Objekt, daher ist dies ähnlich wie die Verwendung von Set.keys().

Syntax

js
keys()

Rückgabewert

Ein neues Iterator-Objekt, das jedes Range-Objekt im gegebenen Highlight in Einfüge-Reihenfolge enthält.

Spezifikationen

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

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
keys

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
In development. Supported in a pre-release version.
In development. Supported in a pre-release version.
No support
No support
See implementation notes.

Siehe auch