Answers for "test if is string javascript"

5

js test if string

if (typeof string === 'string') { /* code */ };
Posted by: Guest on April-18-2020
13

javascript is variable a string

if (typeof myVar === 'string'){
    //I am indeed a string
}
Posted by: Guest on July-23-2019
0

js check if variable is string

if (typeof myVar === 'string'){
    //I am indeed a string
}
Posted by: Guest on January-01-1970

Code answers related to "test if is string javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language