Verifique se o valor é booleano
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"