Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 8, 2024 via pnpm

is-plain-object 5.0.0

Returns true if an object was created by the `Object` constructor, or Object.create(null).
Package summary
Share
0
issues
1
license
1
MIT
Package created
21 Sep 2014
Version published
9 Sep 2020
Maintainers
3
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
is-plain-object@5.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
ⓘ This is a list of is-plain-object 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does is-plain-object do?

"is-plain-object", a popular npm package, is a nifty tool for JavaScript programming. What it does is quite simple yet incredibly useful: it checks if a given object was created either by the Object constructor or via Object.create(null), and returns a boolean value accordingly — true if it was, false if not.

How do you use is-plain-object?

Getting started with "is-plain-object" is quite straightforward. After installing the package with npm via the command "$ npm install --save is-plain-object", you can use it in your JavaScript code using ES modules or Common JS. You just need to import the "isPlainObject" function from the package and use it to check if your object is a plain object.

Here is an example with ES modules:

import {isPlainObject} from 'is-plain-object';

let myObject = {foo: 'bar'};

console.log(isPlainObject(myObject));  // it will return true

Or with Common JS:

const {isPlainObject} = require('is-plain-object');

let myObject = {foo: 'bar'};

console.log(isPlainObject(myObject));  // it will return true

The function will return true if the object was created by the Object constructor or Object.create(null), and false otherwise.

Where are the is-plain-object docs?

For detailed information on "is-plain-object", you should head to its GitHub repository at https://github.com/jonschlinkert/is-plain-object. The readme file on this page is the primary source of documentation for the package. It provides a detailed explanation on how to use the package along with relevant examples. If you are looking to get familiarized with this package, running and reviewing its unit tests can also be a superb way to understand its functionality. The documentation for APIs used in this package can be generated using Verb, as outlined in the readme.