function isRealValue(obj) { return obj && obj !== 'null' && obj !== 'undefined'; } //Use isRealValue(obj) to check further, will always return truthy object.