Checks whether a value is an object
Because typeof null is a troll.
typeof null
var isObject = require('is-object'); var assert = require('assert'); assert.equal(isObject(null), false); assert.equal(isObject({}), true);
npm install is-object