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 with npm
$ npm i isobject --saveInstall with bower
$ bower install isobject --savevar 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);- 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
Objectconstructor. - 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.
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright © 2014-2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on July 20, 2015.