isBooleanRaw
Returns true
if the given object
is a Boolean
. Otherwise, returns false
.
const util = require('node:util');
util.isBoolean(1);
// Returns: false
util.isBoolean(0);
// Returns: false
util.isBoolean(false);
// Returns: true
Content copied to clipboard
Since
v0.11.5