Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript if string empty

// Test whether strValue is empty or is None
if (strValue) {
    //do something
}
// Test wheter strValue is empty, but not None 
if (strValue === "") {
    //do something
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #string #empty
ADD COMMENT
Topic
Name
9+2 =