Answers for "how to check if a variable has a certain string value"

16

if string javascript

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

javascript is variable a string

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

Code answers related to "how to check if a variable has a certain string value"

Code answers related to "Javascript"

Browse Popular Code Answers by Language