JS kontrola to ciąg rundy

if (typeof a_string === 'string') {
    // this is a string
}
Thoughtful Tortoise