title: Javascript switch on undefined property
body: <p>Is it possible to have a switch statement like the following?</p>
  
  <pre><code>switch(this.myObject &amp;&amp; this.myObject.myProperty){ //... }
  </code></pre>
  
  <p>With the purpose of testing if myObject is defined or not?</p>