isBoolean
Import from @varavel/vdl-plugin-sdk/utils/predicates.
Checks if the given value is boolean.
This function tests whether the provided value is strictly boolean.
It returns true if the value is boolean, and false otherwise.
This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to boolean.
Parameters
| Parameter | Type | Description |
|---|---|---|
x |
unknown |
The Value to test if it is boolean. |
Returns
x is boolean
True if the value is boolean, false otherwise.