MediaKeyStatusMap.has()

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

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

Syntax

var boolean = mediaKeyStatusMap(key)

Parameters

key

The key whose value you want returned

Returns

Boolean.

Specifications

Specification
Encrypted Media Extensions
# dom-mediakeystatusmap-has

Browser compatibility

BCD tables only load in the browser