# areUndefined()

## `areTrue()`

Checks whether the values are [`undefined`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined) by using `every()`, `forEach()` and `some()` methods of the returned object.

{% code title="are-undefined.func.ts" %}

```typescript
const areUndefined = <CommonPayload extends object>(...values: any[]) =>
  areDeterminer<CommonPayload>(isUndefined, ...values);
```

{% endcode %}

### Generic type variables

#### <mark style="color:green;">**`CommonPayload`**</mark>**`extends`**<mark style="color:green;">**`object`**</mark>

The `CommonPayload` generic type variable constrained by the [`object`](https://www.typescriptlang.org/docs/handbook/basic-types.html#object) constrains the generic type variable `Payload` of each returned method.

### Parameters

#### `...values: any[]`

A rest parameter of [`any`](https://www.typescriptlang.org/docs/handbook/basic-types.html#any) type to check its elements against [`undefined`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined).

### Returns

The **return value** is an [`object`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) of `every()`, `some()` and `forEach()` as methods of checking supplied [`values`](#...values-any).
