MediaKeyStatusMap: has() method
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{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}}