# is-obj

> Check if a value is an object

Latest version **3.0.0** (published 2021-04-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-obj
pnpm add is-obj
yarn add is-obj
bun add is-obj
```

## Health

**Score 28/100 (F)** — status: abandoned.

Positive: has types package; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2021-04-16 |
| First published | 2015-07-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/is-obj) |
| Module format | ESM |
| Node | >=12 |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 41 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | object, is, check, test, type |

## Links

- npm: https://www.npmjs.com/package/is-obj
- Repository: https://github.com/sindresorhus/is-obj
- Homepage: https://github.com/sindresorhus/is-obj#readme
- Issues: https://github.com/sindresorhus/is-obj/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/is-obj

## 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

- 3.0.0 (latest) — 2021-04-16
- 2.0.0 — 2019-04-19
- 1.0.1 — 2016-03-22
- 1.0.0 — 2015-07-11

## README

# is-obj

> Check if a value is an object

Keep in mind that array, function, regexp, etc, are objects in JavaScript.

See [`is-plain-obj`](https://github.com/sindresorhus/is-plain-obj) if you want to check for plain objects.

## Install

```
$ npm install is-obj
```

## Usage

```js
import isObject from 'is-obj';

isObject({foo: 'bar'});
//=> true

isObject([1, 2, 3]);
//=> true

isObject('foo');
//=> false
```

## Related

- [is](https://github.com/sindresorhus/is) - Type check values

---

<div align="center">
	<b>
		<a href="https://tidelift.com/subscription/pkg/npm-is-obj?utm_source=npm-is-obj&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
	</b>
	<br>
	<sub>
		Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
	</sub>
</div>

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