Vérifiez si la valeur est booléenne
if (typeof variable === "boolean"){
// variable is a boolean
}
Evergreen Tomato
if (typeof variable === "boolean"){
// variable is a boolean
}
def bool_to_word(bool):
# if boolean func
if bool:
return "Yes"
else:
return "No"