obj && Object.keys(obj).length === 0 && obj.constructor === Object
function isRealValue(obj)
{
return obj && obj !== 'null' && obj !== 'undefined';
}
//Use isRealValue(obj) to check further, will always return truthy object.
if (typeof value !== 'undefined' && value) {
//deal with value'
};
Object.entries(obj).length === 0 && obj.constructor === Object
return value == null; // also returns true if value is undefined