Check object undefined using shorthand doesn't work
<pre><code>html += '&lt;td&gt;'+(sd.someKey.s != "undefined") ? sd.someKey.s.a: '-'+'&lt;/td&gt;'
</code></pre>

<p>I thought I'm doing the exception handling correctly but I'm getting error of <code>Cannot read property 'a' of undefined</code> ? </p>