JS, как проверить Typeof Boolean
if (typeof variable == "boolean") {
// variable is a boolean
}
MrStonkus
if (typeof variable == "boolean") {
// variable is a boolean
}