Determines whether a given value is a string.
The value to check.
true if the value is of type string, otherwise false.
true
false
isString('hello'); // trueisString(123); // falseisString(null); // falseisString(['a', 'b']); // false Copy
isString('hello'); // trueisString(123); // falseisString(null); // falseisString(['a', 'b']); // false
Determines whether a given value is a string.