isString
isString(
value):value is string
Type guard to check if a value is a string
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | The value to check |
Returns
Section titled “Returns”value is string
true if value is a string