is-object

Checks whether a value is an object

is-object

Checks whether a value is an object

Because typeof null is a troll.

var isObject = require('is-object');
var assert = require('assert');
 
assert.equal(isObject(null), false);
assert.equal(isObject({}), true);

npm install is-object