title: How to check if a variable is both null and /or undefined in JavaScript
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/27509/detecting-an-undefined-object-property-in-javascript">Detecting an undefined object property in JavaScript</a><br>
    <a href="https://stackoverflow.com/questions/2647867/how-to-determine-if-variable-is-undefined-or-null">How to determine if variable is &#39;undefined&#39; or &#39;null&#39;</a><br>
    <a href="https://stackoverflow.com/questions/5515310/is-there-a-standard-function-to-check-for-null-undefined-or-blank-variables-in">Is there a standard function to check for null, undefined, or blank variables in JavaScript?</a></p>
  </blockquote>
  
  
  
  <p>In my code, I have a condition that looks like</p>
  
  <pre><code>if (variable !== null &amp;&amp; variable !== undefined) {
  }
  </code></pre>
  
  <p>But instead of doing it in two steps, i.e checking if it is not defined and not null. Is there a one step checking that replaces this check.</p>