Więcej niż jedna odpowiedź jest poprawna.
-
isNaN(value);
-
function checkBoolean(variable) { return typeof variable == "boolean"; }
-
Integer(value);
-
const isBoolean = val => 'boolean' === typeof val;
Więcej niż jedna odpowiedź jest poprawna.
isNaN(value);
function checkBoolean(variable) { return typeof variable == "boolean"; }
Integer(value);
const isBoolean = val => 'boolean' === typeof val;