---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# FormData.has()

The **`has()`** method of the `FormData` interface returns a boolean indicating whether a `FormData` object contains a key/value pair with the given name.

## Syntax

```js
has(name)
```

### Parameters

- `name`
  - : The name of the key you want to test for existence.

### Return value

`true` if a key/value pair with the specified name exists; otherwise `false`.
