title: How to check if an object contains a null value?
body: <p>I have an object:</p>
  
  <pre><code>let myObject = {first: "", second: null};
  </code></pre>
  
  <p>And I have a function:</p>
  
  <pre><code>return Object.values(myObject).some(
     objectValue =&gt; objectValue !== "" &amp;&amp; typeof objectValue !== "undefined" &amp;&amp; typeof objectValue !== null
  );
  </code></pre>
  
  <p>What this does is that it returns <code>true</code> if an object has a set value and returns <code>false</code> if an object doesn't have any set values. The thing is that when I pass a <code>null</code> value, this function returns <code>true</code> (as if the object has a set value). </p>
  
  <p>On other occasions it works fine. What is wrong here?</p>