How do I verify the existence of an object in JavaScript?
The following works:
if (!null) alert(\"GOT HERE\");
But this throws a
if (n === Object(n)) { // code }