MediaKeyStatusMap: has() method

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The has() method of the MediaKeyStatusMap interface returns a Boolean, asserting whether a value has been associated with the given key.

Syntax

js
has(key)

Parameters

key

The key whose value you want returned

Return value

Specifications

Specification
Encrypted Media Extensions
# dom-mediakeystatusmap-has

Browser compatibility

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
has

Legend

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

Full support
Full support