MediaKeyStatusMap: has() method
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2019.
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
Loading…