# areDefined()

## `areDefined()`

Checks whether the **values** are **defined** by using `every()`, `forEach()` and `some()` methods of the returned object.

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

```typescript
const areDate = <CommonPayload extends object>(...values: any[]) =>
  areDeterminer<CommonPayload>(isDate, ...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 whether its elements are defined.

### Returns

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://type.angular-package.dev/are/aredefined.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
