> ## Documentation Index
> Fetch the complete documentation index at: https://kk-83bff226.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# intersection

> Returns the intersection of two arrays or null if there is no intersection.

## Signature

```typescript path=null start=null theme={null}
intersection<T>(arr1: T[], arr2: T[]): T[] | null
```

## Type Parameters

* **T**

## Parameters

* **arr1**: `T[]` - The first array.
* **arr2**: `T[]` - The second array.

## Returns

`T[] | null` - An array that contains the intersection of `arr1` and `arr2`, or `null` if there is no intersection.

## Source

Defined in [array.ts:121](https://github.com/koji/ichigyou/blob/main/src/array.ts#L121)
