# isobject

> Returns true if the value is an object and not an array or null.

Latest version **4.1.1** (published 2026-08-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install isobject
pnpm add isobject
yarn add isobject
bun add isobject
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 4.1.1 |
| Published | 2026-08-21 |
| First published | 2014-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 105 |
| Author | Jon Schlinkert |
| Maintainers | trysound, jonschlinkert, doowb |
| Keywords | check, is, is-object, isobject, kind, kind-of, kindof, native, object, type, typeof, value |

## Links

- npm: https://www.npmjs.com/package/isobject
- Repository: https://github.com/jonschlinkert/isobject
- Issues: https://github.com/jonschlinkert/isobject/issues
- npm.io page: https://npm.io/package/isobject

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 4.1.1 (latest) — 2026-08-21
- 4.0.0 — 2019-04-28
- 3.0.1 — 2017-06-30
- 3.0.0 — 2016-12-01
- 2.1.0 — 2016-04-25
- 2.0.0 — 2015-07-21
- 1.0.2 — 2015-07-13
- 1.0.1 — 2015-07-04
- 1.0.0 — 2015-02-25
- 0.2.0 — 2014-09-22
- 0.1.1 — 2014-06-30
- 0.1.0 — 2014-06-30

## README

# isobject

[![npm version](https://img.shields.io/npm/v/isobject.svg)](https://www.npmjs.com/package/isobject)
[![npm downloads](https://img.shields.io/npm/dm/isobject.svg)](https://www.npmjs.com/package/isobject)
[![CI](https://github.com/jonschlinkert/isobject/actions/workflows/ci.yml/badge.svg)](https://github.com/jonschlinkert/isobject/actions/workflows/ci.yml)

> Returns `true` if a value is an object and not an array or `null`.

Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and starring the project to show your ❤️ and support.

Use [is-plain-object](https://github.com/jonschlinkert/is-plain-object) if you only want objects created by the `Object` constructor.

## Install

```sh
npm install isobject
```

## Usage

```js
const isObject = require('isobject');

isObject({});                      // true
isObject(Object.create(null));     // true
isObject(new Date());              // true
isObject(/foo/);                   // true

isObject();                        // false
isObject(null);                    // false
isObject([]);                      // false
isObject(() => {});                // false
isObject('foo');                   // false
```

## API

### `isObject(value)`

Returns `true` when `value` is a non-null object and is not an array. Functions return `false`.

## Development

Install dependencies, build the CommonJS bundle, and run the tests:

```sh
npm install
npm run build
npm test
```

## Related projects

- [extend-shallow](https://www.npmjs.com/package/extend-shallow): Extend an object with the properties of additional objects.
- [is-plain-object](https://www.npmjs.com/package/is-plain-object): Check if an object was created by the `Object` constructor.
- [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value.
- [merge-deep](https://www.npmjs.com/package/merge-deep): Recursively merge values in an object.

## License

[MIT](LICENSE) © Jon Schlinkert

---
_Source: https://npm.io/package/isobject · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
