Skip to content
Checks whether a value is an object, because typeof is a troll
Branch: master
Clone or download
Latest commit dff288a Aug 12, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
.jscs.json
.testem.json
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

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

You can’t perform that action at this time.