---
title: "isObject"
description: "A TypeScript type guard that checks whether a value is a non-null object, excluding arrays, so property access is narrowed safely."
canonical_url: "https://core.mhaibaraai.cn/en/docs/validators/is-object"
---
# isObject

> A TypeScript type guard that checks whether a value is a non-null object, excluding arrays, so property access is narrowed safely.

## Usage

Check whether a value is an object (`{}`), excluding `null` and arrays. This is a TypeScript type guard function.

```ts
import { isObject } from '@movk/core'

isObject({}) // => true
isObject([]) // => false
isObject(null) // => false
isObject('hello') // => false
```

## API

`isObject(value: any): value is object`

### Parameters

**value** (`any`) *required*: The value to check.

### Returns

**boolean**: Returns true if the value is an object (and is not null or an array), otherwise false.

## Changelog

See commit history for [src/validators/isObject.ts](https://github.com/mhaibaraai/movk-core/commits/main/src/validators/isObject.ts).

---

- [GitHub](https://github.com/mhaibaraai/movk-core/blob/main/src/validators/isObject.ts)


## Sitemap

See the full [sitemap](https://core.mhaibaraai.cn/sitemap.md) for all pages.
