js cómo verificar typyOf boolean

if (typeof variable == "boolean") {
    // variable is a boolean
}
MrStonkus