Back to Content

MediaKeyStatusMap: has() method

files/en-us/web/api/mediakeystatusmap/has/index.md

latest465 B
Original Source

{{APIRef("Encrypted Media Extensions")}}{{SecureContext_Header}}

The has() method of the {{domxref("MediaKeyStatusMap")}} interface returns a {{jsxref('Boolean')}}, asserting whether a value has been associated with the given key.

Syntax

js-nolint
has(key)

Parameters

  • key
    • : The key whose value you want returned

Return value

A {{jsxref('Boolean')}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}