check if any values in object are empty javascript code example
Example 1: javascript check if object is null or empty
if (typeof value !== 'undefined' && value) {
//deal with value'
};
Example 2: check if js object is empty
JSON.stringify({}) !== '{}';