---
title: MediaKeyStatusMap.has()
slug: Web/API/MediaKeyStatusMap/has
tags:
  - API
  - EncryptedMediaExtensions
  - MediaKeyStatusMap
  - Method
  - Reference
  - has()
browser-compat: api.MediaKeyStatusMap.has
---
{{APIRef("EncryptedMediaExtensions API")}}{{SeeCompatTable}}

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

## Syntax

```js
var boolean = mediaKeyStatusMap(key)
```

### Parameters

- key
  - : The key whose value you want returned

### Returns

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

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
