Catching a falling 'undefined' knife in object literals?
<p>Need to catch any <code>undefined</code> within the entire structure space of the an object literal. The issue is that the location of the <code>undefined</code> will not be predictable:</p>

<pre><code>.object    
     .result2[0] &lt;--undefined could show its ugly face here, or anywhere above or below!
              .thumbnails[0]
                            .type
                                 .name
                                      .['open']
</code></pre>

<p>This doesn't work:</p>

<pre><code>if ( typeof object.result2[0].thumbnails[0].....  type == 'undefined'){     
    console.log("err'd out")
    handleError();
}
</code></pre>

<p>So I guess I am looking for a solution that follows: if anything within <code>object</code> is undefined do something, or am I barking up the wrong tree?</p>
