---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# PenaltyBox.prototype.has

Check if the given entry is contained in in the PenaltyBox instance.

## Syntax
```js
has(entry)
```

### Parameters

- `entry` _: string_
  - The name of the entry to look up


### Return value

Returns `true` if the entry is contained in the PenaltyBox instance, otherwise returns `false`.

### Exceptions

- `TypeError`
  - Thrown if the provided `entry` value can not be coerced into a string
