checking if var is null javascript code example
Example: javascript syntax for check null or undefined or empty
if (typeof value !== 'undefined' && value) {
//deal with value'
};
if (typeof value !== 'undefined' && value) {
//deal with value'
};