SyntaxFix
Write A Post
Hire A Developer
Questions
you can do like this:
if("merchant_id" in thisSession){ /** will return true if exist */ console.log('Exist!'); }
or
if(thisSession["merchant_id"]){ /** will return its value if exist */ console.log('Exist!'); }