isBooleanRaw

external fun isBooleanRaw(value: Any?): Boolean(source)

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

Since

v0.11.5