README.md
isobject

Returns true if the value is an object and not an array or null.
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
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);
About
Related 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
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Contributors
Commits | Contributor |
---|---|
29 | jonschlinkert |
1 | LeSuisse |
1 | tmcw |
Building docs
(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)
To generate the readme and API documentation with verb:
$ npm install -g verb verb-generate-readme && 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-generate-readme, v0.2.0, on December 01, 2016.