is-plain-object
5.1.0 · 21 Aug 2026MIT100.9M / weekRepositorynpmAtom feed
14 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 5.x · latest line
5.1.0
21 Aug 2026This release makes
is-plain-objectfriendlier for TypeScript users. The exported function is now a type guard, so successful checks narrow values to plain-object records, and the package export map now points TypeScript directly to the bundled declarations.This release makes
is-plain-objectfriendlier for TypeScript users. The exported function is now a type guard, so successful checks narrow values to plain-object records, and the package export map now points TypeScript directly to the bundled declarations.Behind the scenes, the project has also received a thorough refresh: clearer documentation, simpler tests, an up-to-date Rollup build, GitHub Actions CI across supported Node.js versions, and secure automated npm publishing.
There are no runtime API changes in this release.
5.0.0
9 Sep 2020Migrated from default to named export (see why here #17):
Added native ESM support via
exportsmapping
Migrated from default to named export (see why here #17):
ESM/TypeScript
- import isPlainObject from 'is-plain-object'; + import { isPlainObject } from 'is-plain-object';CommonJS
- const isPlainObject = require('is-plain-object'); + const { isPlainObject } = require('is-plain-object');Added native ESM support via
exportsmapping
- 4.x
4.1.1
24 Jul 20204.1.0
21 Jul 2020Reduced size and added type guide to ts definition (thanks to @lifeiscontent)
4.0.0
21 Jul 2020In this release
Object.create(null)is considered as plain object as well.- 3.x
3.0.1
27 Jun 20203.0.0
30 Apr 2019In this release we provided
moduleentry point. This may be breaking for some users who use bundlers.In this release we provided
moduleentry point. This may be breaking for some users who use bundlers.Bower support was also dropped as not widely used these days.
- 2.x
- 1.x
1.0.0
25 Feb 2015- 0.1.x
0.1.0
21 Sep 2014
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.