> For the complete documentation index, see [llms.txt](https://type.angular-package.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://type.angular-package.dev/type-draft/are/arebigint/foreach.md).

# forEach()

## `areBigInt().forEach()`

The `forEach()` method executes a provided [`callback`](/type-draft/are/aredeterminer/foreach.md#foreachcallback-foreachcallback-less-than-any-payload-greater-than) function **once** for each element of the supplied [`values`](https://type.angular-package.dev/type-draft/are/arebigint/pages/Q5zKAPSIgBHO1MVJGW8n#...values-any) of [`areBigInt()`](/type-draft/are/arebigint.md).&#x20;

{% hint style="info" %}
The method uses [`forEach()`](/type-draft/are/aredeterminer/foreach.md) method of [`areDeterminer()`](/type-draft/are/aredeterminer.md).
{% endhint %}

## Example usage

```typescript
// Example usage.
import { areBigInt } from '@angular-package/type';

areBigInt(1n, 2, '3').forEach(
  (result, value, index, array, payload) => {
    result // true, false, false
    value // 1n, 2, 3
    index // 0, 1, 2
    array // [ 1n, 2, 3 ]
    payload // undefined
    return result;
  },
  { age: 2 }
);
```
