isBoolean()
Last updated
Was this helpful?
Last updated
Was this helpful?
isBoolean()
Checks if value is a type, or the obtained type from its equal to 'boolean'
, or an type and an instance of that is equal to true
or false
.
Type
extends
AnyBoolean
=
boolean
Payload
extends
object
=
object
value: any
callback: ResultCallback<any, Payload>
payload?: Payload
value is Type
callback
and payload
String
as boolean
Boolean
as string
The Type
generic type variable constrained by generic type by default of indicates the type of the given via the .
The Payload
generic type variable constrained by indicates the type of optional parameter of the supplied function and optional parameter of the function from which it captures its value.
The value of type to check.
A callback function
of type with parameters, the that has been checked, the of this check, and of generic type variable with optional properties from the provided , to handle them before the return. By default, it uses function.
An optional of the generic type variable is assigned to the of the given function.
The return type is a as the result of its statement, indicating the is a generic type variable constrained by by default equal to the .
The return value is a indicating whether the provided is a type or an instance of .