title: Javascript test ( object && object !== "null" && object !== "undefined" )
body: <p>I seem to be using this test a lot</p>
  
  <pre><code>if( object &amp;&amp; object !== "null" &amp;&amp; object !== "undefined" ){
      doSomething();
  }
  </code></pre>
  
  <p>on <code>objects</code> I get back from a service call or from reading cookies (since different browsers return the different values <code>null</code>, <code>undefined</code>, <code>"null"</code>, or <code>"undefined"</code>).</p>
  
  <p>Is there an easier/more efficient way of doing this check?</p>