# @pacote/is-plain-object

> Checks whether the provided object is a plain JavaScript object.

Latest version **3.0.1** (published 2026-04-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @pacote/is-plain-object
pnpm add @pacote/is-plain-object
yarn add @pacote/is-plain-object
bun add @pacote/is-plain-object
```

## Health

**Score 60/100 (C)** — status: active.

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.0.1 |
| Published | 2026-04-01 |
| First published | 2019-02-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Author | Luís Rodrigues |
| Maintainers | goblindegook |
| Keywords | object |

## Links

- npm: https://www.npmjs.com/package/@pacote/is-plain-object
- Repository: https://github.com/PacoteJS/pacote
- Homepage: https://github.com/PacoteJS/pacote#readme
- Issues: https://github.com/PacoteJS/pacote/issues
- npm.io page: https://npm.io/package/@pacote/is-plain-object

## Recent versions

- 3.0.1 (latest) — 2026-04-01
- 3.0.0 — 2026-03-31
- 2.0.4 — 2025-02-25
- 2.0.3 — 2024-10-05
- 2.0.2 — 2023-08-25
- 2.0.1 — 2023-04-22
- 2.0.0 — 2023-04-13
- 1.2.1 — 2021-08-13
- 1.2.0 — 2021-02-05
- 1.1.6 — 2020-11-27
- 1.1.5 — 2020-11-14
- 1.1.4 — 2020-09-05
- 1.1.3 — 2020-05-21
- 1.1.2 — 2020-03-25
- 1.1.1 — 2020-01-06
- … 9 more at https://npm.io/package/@pacote/is-plain-object/versions

## README

# @pacote/is-plain-object

![version](https://badgen.net/npm/v/@pacote/is-plain-object)
![minified](https://badgen.net/bundlephobia/min/@pacote/is-plain-object)
![minified + gzip](https://badgen.net/bundlephobia/minzip/@pacote/is-plain-object)

Checks whether the provided value is a plain JavaScript object.

## Installation

```bash
yarn add @pacote/is-plain-object
```

## Usage

```typescript
import { isPlainObject } from '@pacote/is-plain-object'

// These return true:
isPlainObject({})
isPlainObject({ an: 'object' })

// All of these return false:
isPlainObject(undefined)
isPlainObject(null)
isPlainObject(false)
isPlainObject(true)
isPlainObject(NaN)
isPlainObject(Infinity)
isPlainObject(0)
isPlainObject('string')
isPlainObject([])
isPlainObject(new ArrayBuffer(0))
isPlainObject(new Date())
isPlainObject(new Map())
isPlainObject(new Promise())
isPlainObject(new Set())
isPlainObject(new WeakMap())
isPlainObject(new WeakSet())
```

### `isPlainObject(o: any): boolean`

`isPlainObject()` takes a single value and checks whether it is a plain object. May be used as a type guard.

## License

MIT © [Luís Rodrigues](https://goblindegook.com).

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