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
A Boolean.
Specifications
| Specification |
|---|
| Encrypted Media Extensions # dom-mediakeystatusmap-has |
Browser compatibility
BCD tables only load in the browser