Answers for "how to check string or not in javascript object"

16

if string javascript

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

check data type in javascript

typeof("string"); //string
typeof(123); //number
Posted by: Guest on July-25-2020

Code answers related to "how to check string or not in javascript object"

Code answers related to "Javascript"

Browse Popular Code Answers by Language