> ## 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.

# isSubset

> Checks if the first array is a subset of the second array.

## Signature

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

## Type Parameters

* **T** - The type of the array elements.

## Parameters

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

## Returns

`boolean` - Returns true if every element in arr1 is included in arr2, otherwise returns false.

## Source

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