Package Exports
- isobject
- isobject/index
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (isobject) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
isobject

Returns true if the value is an object and not an array or null.
Use is-plain-object if you want only objects that are created by the Object
constructor.
Install
Install with npm
$ npm i isobject --save
Install with bower
$ bower install isobject --save
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);
Related projects
- assign-deep: Deeply assign the enumerable properties of source objects to a destination object.
- extend-shallow: Extend an object with the properties of additional objects. node.js/javascript util.
- is-plain-object: Returns true if an object was created by the
Object
constructor. - is-extendable: Returns true if a value is any of the object types: array, regexp, plain object,… more
- is-equal-shallow: Does a shallow comparison of two objects, returning false if the keys or values differ.
- kind-of: Get the native type of a value.
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
Jon Schlinkert
License
Copyright © 2014-2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on July 13, 2015.