how to check for string in javascript? code example
Example: if is a string javascript
function isString(x) {
return Object.prototype.toString.call(x) === "[object String]"
}
function isString(x) {
return Object.prototype.toString.call(x) === "[object String]"
}