1. Web
  2. Web APIs
  3. MediaKeyStatusMap
  4. has()

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

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.

AltStyle によって変換されたページ (->オリジナル) /