Tennessee Gibbs 0304752480 added pages to master | 6 лет назад | |
---|---|---|
.. | ||
LICENSE | 6 лет назад | |
README.md | 6 лет назад | |
index.js | 6 лет назад | |
package.json | 6 лет назад |
Returns true if the value is an object and not an array or null.
Install with npm:
$ npm install isobject --save
Use is-plain-object if you want only objects that are created by the Object
constructor.
Install with npm:
$ npm install isobject
Install with bower
$ bower install isobject
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
Object
constructor. | homepagePull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Generate readme and API documentation with verb:
$ npm install verb && npm run docs
Or, if verb is installed globally:
$ verb
Install dev dependencies:
$ npm install -d && npm test
Jon Schlinkert
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb, v0.9.0, on April 25, 2016.