Checks if a given value is of string type.
string
isString('hello')// => trueisString(10)// => false Copy
isString('hello')// => trueisString(10)// => false
The expected string literal type.
The value to be checked.
true if the given value is of string type, false otherwise.
true
false
Generated using TypeDoc v0.24.7
Checks if a given value is of
string
type.Example