GuardsisStringisString CallableisString(x: unknown): x is stringChecks if x is a string. ExampleisString("foobar")// => trueisString(1234)// => falseisString({})// => falseParametersx: unknownThe value to check.Returns x is stringtrue if x is a string, false otherwise.
Checks if
x
is a string.Example