# validateEach

**Kind:** Function

**Source:** [`packages/common/utils/validate-each.util.ts`](https://github.com/nestjs/nest/blob/master/packages/common/utils/validate-each.util.ts#L16)

**Part of:** [Common](subsystem-packages-common)

## Signature

```ts
function validateEach(context: { name: string }, arr: any[], predicate: Function, decorator: string, item: string): boolean
```

## Parameters

| Name | Type |
|---|---|
| `context` | `{ name: string }` |
| `arr` | `any[]` |
| `predicate` | `Function` |
| `decorator` | `string` |
| `item` | `string` |

**Returns:** `boolean`
