title: Nodejs' try (check) for undefined
body: <p>In ruby we something like <code>a.try(:property)</code> even if a is nil(undefined) program won't throw an exception and keep going. But for nodejs/javascript if I have <code>a.property</code>  and a is undefined program will throw an exception. I have to do something like </p>
  
  <pre><code>if (a) {
   a.property
  }
  </code></pre>
  
  <p>It is quite tedious and unpretty.</p>
  
  <p>Is there something in nodejs similar like <code>a.try(:property)</code> so I don't have to check before I use a property?</p>