Answers for "javascript check if a value is string"

16

if string javascript

if (typeof myVar === 'string') { /* code */ };
Posted by: Guest on July-23-2020
0

javascript check if var is string

if (typeof a_string === 'string') {
    // this is a string
}
Posted by: Guest on October-12-2020
6

js check if variable is string

if (typeof myVar === 'integer'){
    //I am indeed an integer
}

if (typeof myVar === 'boolean'){
    //I am indeed a boolean
}
Posted by: Guest on March-19-2020

Code answers related to "javascript check if a value is string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language