js comment vérifier le type de booléen

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