<p>How do I see if a certain object has been loaded, and if not, how can it be loaded, like the following?</p>

<pre><code>if (!isObjectLoaded(someVar)) {
    someVar= loadObject();
}
</code></pre>

```
typeof(obj)
```
would return "object" for an object of a class among other possible values.