JavaScript es un número o cadena variable
if (typeof myVar === 'string'){
//I am indeed a string
}
Grepper
if (typeof myVar === 'string'){
//I am indeed a string
}