> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# Function: isOption()

> **isOption**\<`T`>(`option`): `option is Option<T>`

Type guard to check if a value is an [Option](/api/types/Option.Option.md).

## Type Parameters

### T

`T` _extends_ [`NonNullableValue`](/api/types/Option.NonNullableValue.md)

The type of the value.

## Parameters

### option

`unknown`

The value to check.

## Returns

`option is Option<T>`

`true` if the value is an [Option](/api/types/Option.Option.md), otherwise `false`.

## Example

```ts
import { Option } from 'byenull';

const value: unknown = { type: 'Some', value: 42 };

if (Option.isOption<number>(value)) {
  // value is Option<number>
}
```
