function isBoolean
Jump to headingisBoolean(object: unknown): object is boolean
Deprecated
Returns true
if the given object
is a Boolean
. Otherwise, returns false
.
import util from 'node:util';
util.isBoolean(1);
// Returns: false
util.isBoolean(0);
// Returns: false
util.isBoolean(false);
// Returns: true
Parameters Jump to heading
Jump to headingobject: unknown
Return Type Jump to heading
object is boolean