How to determine if a variable is 'undefined' or 'null'?
With JavaScript, I want to find whether a variable is 'null' or 'undefined'. The following is my code, but I am not sure about it:
function isEmpty(age) {
return (age === undefined || age == null) ? true : false;
}