is-real-boolean
v1.0.0
Published
check if a boolean
Downloads
141
Readme
is-real-boolean
Check if a value is a real boolean.
const isRealBoolean = require('is-real-boolean')
const assert = require('node:assert')
assert(isRealBoolean(true))
assert(!isRealBoolean("foobar"))
assert(!isRealBoolean(new Boolean(true)))