javascript testing for object property
<p>I have a string like this:</p>

<pre><code>var TheDate = "6.14.2012";
</code></pre>

<p>and I have an object <code>MyObject</code> that has properties that may match that string. However, when I write this:</p>

<pre><code>if (MyObject[TheDate] === null || MyObject[TheDate] === 'undefined') { .... }
</code></pre>

<p>the conditions never seem to evaluate to true even though I know the property doesn't exist. </p>

<p>What am I missing??</p>

<p>Thanks.</p>
