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

# Function: isResult()

> **isResult**\<`T`, `E`>(`result`): `result is Result<T, E>`

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

## Type Parameters

### T

`T`

The type of the success value.

### E

`E`

The type of the error value.

## Parameters

### result

`unknown`

The value to check.

## Returns

`result is Result<T, E>`

`true` if the value is a [Result](/byethrow/api/types/Result.Result.md), otherwise `false`.

## Example

```ts
import { Result } from '@praha/byethrow';

const value: unknown = { type: 'Success', value: 42 };
if (Result.isResult(value)) {
  // value is now typed as Result<unknown, unknown>
  console.log(value.type); // 'Success' or 'Failure'
}
```
