JS Cara memeriksa tipe boolean

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