isString
Import from @varavel/vdl-plugin-sdk/utils/predicates.
Checks if a given value is string.
This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to string.
Parameters
| Parameter | Type | Description |
|---|---|---|
value |
unknown |
The value to check if it is string. |
Returns
value is string
Returns true if value is a string, else false.