Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to check if input is string javascript

let value = 'abc';
if (typeof value === 'string') {
  // it is a string
}
 
PREVIOUS NEXT
Tagged: #check #input #string #javascript
ADD COMMENT
Topic
Name
5+8 =