# isOfKind

> This document is the Markdown version of [valibot.dev/api/isOfKind/](https://valibot.dev/api/isOfKind/). For the complete documentation index, see [llms.txt](https://valibot.dev/llms.txt).

A generic type guard to check the kind of an object.

```ts
const result = v.isOfKind<TKind, TObject>(kind, object);
```

## Generics

- `TKind` `extends TObject['kind']`
- `TObject` `extends { kind: string }`

## Parameters

- `kind` `TKind`
- `object` `TObject`

## Returns

- `result` `boolean`
