Answers for "js if type string"

0

check type string javascript

if (typeof myVar === 'string' || myVar instanceof String)
// it's a string
else
// it's something else
Posted by: Guest on October-15-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language