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 Mar 31, 2024 via pnpm

is-plain-obj 2.1.0

Check if a value is a plain object
Package summary
Share
0
issues
1
license
1
MIT
Package created
11 Jul 2015
Version published
21 Jan 2020
Maintainers
1
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-obj@2.1.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-obj 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does is-plain-obj do?

The "is-plain-obj" is a handy JavaScript library that serves the main function of checking if a value is a plain object. In JavaScript terms, an object is considered plain if it has been created by {}, new Object(), or Object.create(null) expressions. The uniqueness of "is-plain-obj" lies in its capability to accurately determine these instances.

How do you use is-plain-obj?

Using the "is-plain-obj" library is pretty straightforward. First, you need to install the library in your project using npm with the command npm install is-plain-obj.

Once you've installed the library, you could then use it on your code by importing it and calling the isPlainObject() function on any value or variable to check if it's a plain object.

Here is a basic example:

import isPlainObject from 'is-plain-obj';

console.log(isPlainObject({foo: 'bar'})); //=> true
console.log(isPlainObject(new Object())); //=> true
console.log(isPlainObject(Object.create(null))); //=> true
console.log(isPlainObject([1, 2, 3])); //=> false

In the example above, the function isPlainObject(){} returns true when the argument is a plain object and false when it's not.

Where are the is-plain-obj docs?

The documentation for "is-plain-obj" is contained within the README file on the GitHub repository. For more detailed information on how to use "is-plain-obj", additional methods, and more examples, you can navigate to the GitHub repository. The README provides all the necessary details you would need to effectively utilize "is-plain-obj" in your JavaScript projects.