Checks if value is classified as a boolean primitive or object.
value
The value to check.
Returns true if value is a boolean, else false.
true
false
5.5.0
isBoolean(false)// => trueisBoolean(null)// => false Copy
isBoolean(false)// => trueisBoolean(null)// => false
Checks if
value
is classified as a boolean primitive or object.