title: Javascript Checking for empty datepicker
body: <p>I've tried every permutation of checking for this logic to work and I cannot find the right syntax.</p>
  
  <p>I have the following bit of Javascript:</p>
  
  <pre><code>var d = $("#myDatepicker1").datepicker("getDate");
  if ($.isEmptyObject(d)) {
      $("#dailySummaryDateSelector").datepicker("setDate", new Date());
  }
  </code></pre>
  
  <p>When the page loads and <code>d</code> is evaluated Firebug shows it as <code>Object [ ]</code></p>
  
  <p>In the <code>if</code> statement I've tried:</p>
  
  <pre><code>if (d == null) {
  if (d == {}) {
  if (d == Object()) {
  if ($.isEmptyObject(d)) {
  if (d.isEmptyObject()) {
  </code></pre>
  
  <p>None of these work.  As far as I can tell <code>Object [ ]</code> is an empty object so how do I actually test for that and get the  contents of the <code>if</code> statement to execute?</p>