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

# isSorted

> Checks if an array is sorted.

## Signature

```typescript path=null start=null theme={null}
isSorted<T>(arr: T[], sortType: SortType): boolean
```

## Type Parameters

* **T**

## Parameters

* **arr**: `T[]`
* **sortType**: `SortType`

## Returns

`boolean`

## Source

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