is-plain-obj

WebJar for is-plain-obj

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-plain-obj
Last Version

Last Version

2.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

is-plain-obj
WebJar for is-plain-obj
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/is-plain-obj

Download is-plain-obj

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/is-plain-obj/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>is-plain-obj</artifactId>
    <version>2.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/is-plain-obj/
implementation 'org.webjars.npm:is-plain-obj:2.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/is-plain-obj/
implementation ("org.webjars.npm:is-plain-obj:2.1.0")
'org.webjars.npm:is-plain-obj:jar:2.1.0'
<dependency org="org.webjars.npm" name="is-plain-obj" rev="2.1.0">
  <artifact name="is-plain-obj" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='is-plain-obj', version='2.1.0')
)
libraryDependencies += "org.webjars.npm" % "is-plain-obj" % "2.1.0"
[org.webjars.npm/is-plain-obj "2.1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

is-plain-obj

Check if a value is a plain object

An object is plain if it's created by either {}, new Object(), or Object.create(null).

Install

$ npm install is-plain-obj

Usage

const isPlainObject = require('is-plain-obj');

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

isPlainObject(new Object());
//=> true

isPlainObject(Object.create(null));
//=> true

isPlainObject([1, 2, 3]);
//=> false

class Unicorn {}
isPlainObject(new Unicorn());
//=> false

Related

  • is-obj - Check if a value is an object
  • is - Type check values

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Versions

Version
2.1.0
2.0.0
1.1.0
1.0.0