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

# first

> Gets the first element of an array.

## Signature

```typescript path=null start=null theme={null}
first<T>(arr: T[]): T
```

## Type Parameters

* **T**

## Parameters

* **arr**: `T[]` - The array to get the first element from.

## Returns

`T` - The first element of the array.

## Source

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