Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check object is null empty or undefined

function isRealValue(obj)
{
 return obj && obj !== 'null' && obj !== 'undefined';
}

//Use isRealValue(obj) to check further, will always return truthy object.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #object #null #empty #undefined
ADD COMMENT
Topic
Name
2+3 =