# type-is-object

> A utility to test if a 'value' has a type of 'Object' and is not null

Latest version **1.0.9** (published 2019-08-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install type-is-object
pnpm add type-is-object
yarn add type-is-object
bun add type-is-object
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2019-08-08 |
| First published | 2019-08-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | iClusterDev |
| Maintainers | iclusterdev |
| Keywords | utils, type, object, isobject, is-object, isObject |

## Links

- npm: https://www.npmjs.com/package/type-is-object
- Repository: https://github.com/iClusterDev/type-is-object
- Homepage: https://iclusterdev.github.io/type-is-object/
- Issues: https://github.com/iClusterDev/type-is-object/issues
- npm.io page: https://npm.io/package/type-is-object

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.9 (latest) — 2019-08-08
- 1.0.8 — 2019-08-08
- 1.0.7 — 2019-08-04
- 1.0.6 — 2019-08-04
- 1.0.5 — 2019-08-04
- 1.0.4 — 2019-08-04
- 1.0.3 — 2019-08-04
- 1.0.2 — 2019-08-04
- 1.0.1 — 2019-08-04
- 1.0.0 — 2019-08-04

## README

# type-is-object

A utility to check if `value` is not `null` and its type is `object`.

## Installation

Using [npm](https://www.npmjs.com/package/type-is-object)

```console
npm i type-is-object
```

## Usage

In Node (CommonJS)

```js
const isObject = require('type-is-object');

// on "undefined" -> false
console.log(isObject());

// on "null" -> false
console.log(isObject(null));

// on "number" -> false
console.log(isObject(100));

// on "string" -> false
console.log(isObject('foo'));

// on "boolean" -> false
console.log(isObject(true));

// on "plain object" -> true
console.log(isObject({ a: 100, b: 200 }));

// on "array" -> true
console.log(isObject([1, 2, 3]));

// on "function" -> true
console.log(
  isObject(function() {
    return 'bar';
  })
);
```

In the Browser (ES6 modules):

```js
import isObject from 'type-is-object';
```

## Contributing

If you find any issues, feel free to submit a pull request

## Author

[iClusterDev](https://github.com/iClusterDev)

## License

This project is under the [MIT](LICENSE) License

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