Answers for "vanilla js check if a given input 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 "vanilla js check if a given input is a string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language