title: Check if Object is Empty in ES6
body: <p>I need to check whether the status is approved or not, so i check it if it is empty. Whats the most efficient way to do this?</p>
  
  <p><strong>RESPONSE</strong></p>
  
  <pre><code> {
        "id": 2,
        "email": "yeah@yahoo.com",
        "approved": {
          "approved_at": "2020"
        },
        "verified": {
          "verified_at": "2020"
        }
      }
  </code></pre>
  
  <p><strong>CODE</strong></p>
  
  <pre><code>    const checkIfEmpty = (user) =&gt; {
      if (Object.entries(user.verified).length === 0) {
        return true;
      }
      return false;
    };
  </code></pre>