isString(x): x is string
x
x is string
Checks if x is a string.
isString("foobar")// => true isString(1234)// => false isString({})// => false
unknown
The value to check.
true if x is a string, false otherwise.
true
false