4.0.0 • Published 5 years ago

isobject v4.0.0

Weekly downloads
37,658,370
License
MIT
Repository
github
Last release
5 years ago

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

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

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

(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

Related projects

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.

define-propertysnapdragonclass-utilsget-valueunset-valueobject-visitobject.pickobject.defaultsline-columnfree-minarchetype-library@cartons/graphql-uploadcordova-createcomponennentteasy-select-rnvuedragdropuploadimagespopsmart-common-authreact-native-bluetooth2killi8n-react-native-fast-imagern-send-sms@fela-next/fela@fela-next/fela-monolithic@fela-next/fela-plugin-custom-property@fela-next/fela-plugin-embedded@fela-next/fela-plugin-extend@fela-next/fela-plugin-fallback-value@fela-next/fela-plugin-friendly-pseudo-class@fela-next/fela-plugin-important@fela-next/fela-plugin-named-keys@fela-next/fela-plugin-native-media-query@fela-next/fela-plugin-prefixer@fela-next/fela-plugin-responsive-value@fela-next/fela-plugin-simulate@fela-next/fela-plugin-typescript@fela-next/fela-plugin-unit@fela-next/fela-plugin-validatorspecify-importsbabel-specify-imports@icanpm/api-masterwx-ga-trackergew-nodejs-api-client@arisageha/react-lazyload@arisageha/react-lazyload-fix@cashremit/cr-streamline-icons@storybook/telejsonreact-native-template-rfbase@leight-core/leight-antdcloud-archive-s3accra-uglifyairscanairscan-examplebb-chatreact-native-esc-pos-sahaab@borisovart/atol-kkt-module@frxf/frxf@phil8795/pecuniarius-apideneme323112@texttree/demo-bsa-reference-rcl@fundefund/funde_ck@ntt_app/react-native-custom-notificationreact-native-custom-text-hwjames@jgrimard/homebridge-vivint-mfa-testreact-native-covid-sdkgql_din_modbitgetreact-native-thanh-toast-library@thanhnguyen14797/react-native-thanh-toast-library@l1nyanm1ng/react-picture-viewercthpb-plugin-socialkattpanqibaoreact-native-printer-brothersrn-pdf-reader-offlinecbmis-ai-toolboxreact-native-shekhar-bridge-testcogoportutilseasy-threeeasy-three-templevibestliblevibestlib2levilibtest19levilibtest24levilibtest25levilibtest26levilibtest27levilibtest28levilibtest29uinz-notificationsnapdragon-updatedwilscanner@oiti/documentoscopy-react-nativejs4cytoscapekorridor@mink-opn/build-tokensquoc-testreact-native-slider-kfunblock-block-save-variables@infinitebrahmanuniverse/nolb-isocclibyarntest@saaspe/components
4.0.0

5 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.1.0

8 years ago

2.0.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.2.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago