Is the value an object, and not an array or null?
Installations
npm install isobject
Developer Guide
Typescript
Yes
Module System
CommonJS
Min. Node Version
>=0.10.0
Node Version
8.15.0
NPM Version
6.4.1
Score
99.5
Supply Chain
97.4
Quality
79.5
Maintenance
100
Vulnerability
100
License
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
Download Statistics
Total Downloads
12,911,301,006
Last Day
7,336,491
Last Week
33,070,073
Last Month
157,848,863
Last Year
2,260,547,096
GitHub Statistics
105 Stars
60 Commits
19 Forks
4 Watching
1 Branches
8 Contributors
Bundle Size
275.00 B
Minified
208.00 B
Minified + Gzipped
Package Meta Information
Latest Version
4.0.0
Package Id
isobject@4.0.0
Size
2.99 kB
NPM Version
6.4.1
Node Version
8.15.0
Publised On
28 Apr 2019
Total Downloads
Cumulative downloads
Total Downloads
12,911,301,006
Last day
-4.1%
7,336,491
Compared to previous day
Last week
-17%
33,070,073
Compared to previous week
Last month
3.7%
157,848,863
Compared to previous month
Last year
-8.9%
2,260,547,096
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
4
isobject
Returns true if the value is an object and not an array or null.
Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your :heart: and support.
Install
Install with npm:
1$ npm install --save isobject
Use is-plain-object if you want only objects that are created by the Object
constructor.
Install
Install with npm:
1$ npm install isobject
Usage
1import isObject from 'isobject';
True
All of the following return true
:
1isObject({}); 2isObject(Object.create({})); 3isObject(Object.create(Object.prototype)); 4isObject(Object.create(null)); 5isObject({}); 6isObject(new Foo); 7isObject(/foo/);
False
All of the following return false
:
1isObject(); 2isObject(function () {}); 3isObject(1); 4isObject([]); 5isObject(undefined); 6isObject(null);
About
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Running Tests
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
1$ npm install && npm test
Building docs
(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)
To generate the readme, run the following command:
1$ npm install -g verbose/verb#dev verb-generate-readme && verb
Related projects
You might also be interested in these projects:
- extend-shallow: Extend an object with the properties of additional objects. node.js/javascript util. | homepage
- is-plain-object: Returns true if an object was created by the
Object
constructor. | homepage - kind-of: Get the native type of a value. | homepage
- merge-deep: Recursively merge values in a javascript object. | homepage
Contributors
Commits | Contributor |
---|---|
30 | jonschlinkert |
8 | doowb |
7 | TrySound |
3 | onokumus |
1 | LeSuisse |
1 | tmcw |
1 | ZhouHansen |
Author
Jon Schlinkert
License
Copyright © 2019, Jon Schlinkert. Released under the MIT License.
This file was generated by verb-generate-readme, v0.8.0, on April 28, 2019.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 4/20 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 17 are checked with a SAST tool
Score
3.3
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to isobject
is-plain-object
Returns true if an object was created by the `Object` constructor, or Object.create(null).
lodash.isobject
The modern build of lodash’s `_.isObject` as a module.
typical
Isomorphic, functional type-checking for Javascript
lodash.isobjectlike
The lodash method `_.isObjectLike` exported as a module.