# utils/first

module

<a id="functions">

## Functions

<a id="function-first">

### `first( iterator ) → T | null`

Returns first item of the given `iterator`.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-utils/src/first.ts#L13)

#### Type parameters

* `T`

#### Parameters

* `iterator: Iterator<T>`

#### Returns

* `T | null`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
