isobject (2.1.0)

Published 2026-02-24 13:58:49 +00:00 by atheaadmin

Installation

registry=
npm install isobject@2.1.0
"isobject": "2.1.0"

About this package

isobject NPM version NPM downloads Build Status

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

Install

Install with npm:

$ npm install isobject --save

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

Install

Install with npm:

$ npm install isobject

Install with bower

$ bower install isobject

Usage

var isObject = require('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);

You might also be interested in these projects:

merge-deep: Recursively merge values in a javascript object. | homepage

Contributing

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

Building docs

Generate readme and API documentation with verb:

$ npm install verb && npm run docs

Or, if verb is installed globally:

$ verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Jon Schlinkert

License

Copyright © 2016, Jon Schlinkert. Released under the MIT license.


This file was generated by verb, v0.9.0, on April 25, 2016.

Dependencies

Dependencies

ID Version
isarray 1.0.0

Development Dependencies

ID Version
gulp-format-md ^0.1.9
mocha ^2.4.5

Keywords

check is is-object isobject kind kind-of kindof native object type typeof value
Details
npm
2026-02-24 13:58:49 +00:00
0
Jon Schlinkert
MIT
2.3 KiB
Assets (1)
Versions (2) View all
2.1.0 2026-02-24
3.0.1 2026-02-24