Checks if a value is a String
value
Returns true if the value is a String
true
String
const result = isString("");console.log(result); // true
Returns false if the value is not a String
false
const result = isString(1);console.log(result); // false
true if value is a String, otherwise false
the value to check
Generated using TypeDoc
Checks if a
valueis a StringExample
Returns
trueif thevalueis aStringExample
Returns
falseif thevalueis not aStringReturns
trueifvalueis a String, otherwisefalse