You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.5KB

is-object Version Badge

build status dependency status dev dependency status License Downloads

npm badge

browser support

Checks whether a value is an object

Because typeof null is a troll.

Example

var isObject = require('is-object');
var assert = require('assert');

assert.equal(isObject(null), false);
assert.equal(isObject({}), true);

Installation

npm install is-object

Contributors

MIT Licensed