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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.