title: How to check if every properties in an object are null
body: <p>I have an object, sometimes it is empty like so <code>{}</code> other times it will have properties that are set to null.</p>
  
  <pre><code>{
    property1: null,
    property2: null
  }
  </code></pre>
  
  <p>How can I determine if ALL the properties within this object is null?
  If they are all null then return false.</p>
  
  <p>At the moment I'm using lodash to check for the first case where the object is simply <code>{}</code> empty. But I also need to cover the second case.</p>
  
  <pre><code>if (isEmpty(this.report.device)) {
    return false;
  }
  return true;
  </code></pre>