SyntaxFix
Write A Post
Hire A Developer
Questions
I like this:
if (wlocation !== undefined)
But if you prefer the second way wouldn't be as you posted. It would be:
if (typeof wlocation !== "undefined")