I saw this question, but I didn\'t see a JavaScript specific example. Is there a simple string.Empty available in JavaScript, or is it just a case of checking f
string.Empty
To check if it is exactly an empty string:
if(val==="")...
To check if it is an empty string OR a logical equivalent for no-value (null, undefined, 0, NaN, false, ...):
if(!val)...