check if element is string 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]"
}