IsBoolean
Last updated
Was this helpful?
Last updated
Was this helpful?
Determine whether a given object is a boolean
object
any
true
The value to test for boolean-ness.
Yes
is considered a boolean that is true
Result: true
No
is considered a boolean that is false
Result: true
Maybe
is not considered a boolean
Result: false
true
is a boolean
Result: true
false
is a boolean
Result: true
0
is considered a boolean that is false
Result: true
23
is considered a boolean that is true
Result: true