Javascript shorthand way to assign true/false to variable if a array element exists
<p>I was hoping I could just assign true / false to a variable if my element exists in an associative array.  </p>

<p>I tried this --</p>

<pre><code>var finalDisExist = stepsArray['stepIDFinal'];   
</code></pre>

<p>-- of course this does exactly what you would think it does (assigning the object to the variable.</p>

<p>But I am pretty sure I have seen something close to this before, can someone tell me what I am missing?</p>

<p>Thanks!
Todd</p>
