shrine-medco/shrine-webclient/src/main/html/node_modules/isobject23de2099ce18release/1.22.2.4
shrine-medco/shrine-webclient/src/main/html/node_modules/isobject
23de2099ce18release/1.22.2.4
README.md
README.md
isobject ![NPM version](https://www.npmjs.com/package/isobject) ![NPM downloads](https://npmjs.org/package/isobject) ![Build Status](https://travis-ci.org/jonschlinkert/isobject)
Returns true if the value is an object and not an array or null.
Install
Install with npm:
sh $ npm install isobject --save
Use is-plain-object if you want only objects that are created by the Object constructor.
Install
Install with npm:
sh $ npm install isobject
Install with bower
sh $ bower install isobject
Usage
js var isObject = require('isobject');
True
All of the following return true:
js 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:
js isObject(); isObject(function () {}); isObject(1); isObject([]); isObject(undefined); isObject(null);
Related projects
You might also be interested in these projects:
merge-deep: Recursively merge values in a javascript object. | homepage
- 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
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:
sh $ npm install verb && npm run docs
Or, if verb is installed globally:
sh $ verb
Running tests
Install dev dependencies:
sh $ 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._
c4science · Help