Answers for "javascript how to check if a value is a string"

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 "javascript how to check if a value is a string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language