JavaScript est variable une chaîne
if (typeof myVar === 'string'){
//I am indeed a string
}
Grepper
if (typeof myVar === 'string'){
//I am indeed a string
}
if (typeof myVar === 'integer'){
//I am indeed an integer
}
if (typeof myVar === 'boolean'){
//I am indeed a boolean
}