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