SyntaxFix
Write A Post
Hire A Developer
Questions
You can check if the value is undefined or null by simply using typeof:
if(typeof value == 'undefined'){