js is boolean
snippet in javascript

js is boolean

user947

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