typeof "boolean" alias.
typeof
isBoolean(true); // trueisBoolean(false); // trueisBoolean(null); // false
true if the given value is a boolean, false otherwise.
true
boolean
false
typeof
"boolean" alias.Example
Returns
true
if the given value is aboolean
,false
otherwise.