Files
Mario Romano 07807e7bc3 # add dist
2016-04-21 11:56:31 +01:00
..
2016-04-21 11:56:31 +01:00
2016-04-21 11:56:31 +01:00
2016-04-21 11:56:31 +01:00
2016-04-21 11:56:31 +01:00
2016-04-21 11:56:31 +01:00

isobject NPM version Build Status

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);
  • 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 20, 2015.