package
Is this value a JS Boolean? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
npm install is-boolean-objectGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Is this value a JS Boolean? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
var isBoolean = require('is-boolean-object');
var assert = require('assert');
assert.notOk(isBoolean(undefined));
assert.notOk(isBoolean(null));
assert.notOk(isBoolean('foo'));
assert.notOk(isBoolean(function () {}));
assert.notOk(isBoolean([]));
assert.notOk(isBoolean({}));
assert.notOk(isBoolean(/a/g));
assert.notOk(isBoolean(
Simply clone the repo, npm install, and run npm test
Estimated unpacked size across 13 packages.
238.4 kB
Includes dependencies.