title: is there a better way to check a value is not blank or null than this
body: <p>I've just taken over a project from another developer and the code has a lot of if statements like this:</p>
  
  <pre><code>if( value != null || value != "" || value != undefined )
  {
      doSomeThing();
  }
  </code></pre>
  
  <p>Which while ok, does get a bit messy when used everywhere. Is there a better, neater way to write this? I was thinking of this</p>
  
  <pre><code>if( value.length &gt; 0 || value != undefined )
  {
      doSomeThing();
  }
  </code></pre>
  
  <p>What do you all think?</p>
  
  <p>Thanks</p>
  
  <p>Stephen</p>