true if the value is a boolean, false otherwise.bool isBool() @property const nothrow @nogc pure @safeCheck if this value is a boolean (Type.BOOL).
More readable alternative to v.type == var.Type.BOOL.
true if the value is a boolean, false otherwise.var b = true;
assert(b.isBool);
var i = 42;
assert(!i.isBool);