Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

isobject

Package Overview
Dependencies
0
Maintainers
3
Versions
11
Issues
File Explorer

Advanced tools

isobject

Returns true if the value is an object and not an array or null.

    4.0.0latest

Version published
Maintainers
3
Weekly downloads
51,651,303
increased by4.27%

Weekly downloads

Changelog

Source

In this release we provided module entry point. This may be breaking for some users who use bundlers.

Bower support was also dropped as not widely used these days.

Readme

Source

isobject NPM version NPM monthly downloads NPM total downloads Linux Build Status

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:

$ npm install --save isobject

Use is-plain-object if you want only objects that are created by the Object constructor.

Install

Install with npm:

$ npm install isobject

Usage

import isObject from 'isobject';

True

All of the following return true:

isObject({}); isObject(Object.create({})); isObject(Object.create(Object.prototype)); isObject(Object.create(null)); isObject({}); isObject(new Foo); isObject(/foo/);

False

All of the following return false:

isObject(); isObject(function () {}); isObject(1); isObject([]); isObject(undefined); isObject(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:

$ 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:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

You might also be interested in these projects:

Contributors

CommitsContributor
30jonschlinkert
8doowb
7TrySound
3onokumus
1LeSuisse
1tmcw
1ZhouHansen

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.

Keywords

FAQs

What is isobject?

Returns true if the value is an object and not an array or null.

Is isobject popular?

The npm package isobject receives a total of 43,430,828 weekly downloads. As such, isobject popularity was classified as popular.

Is isobject well maintained?

We found that isobject demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 3 open source maintainers collaborating on the project.

Last updated on 28 Apr 2019

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc