title: Using an empty object as a parameter to a conditional if loop
body: <p>This is similar to what I have been trying to do, </p>
  
  <pre><code>var obj = {};
  if(obj){
  //do something
  }
  </code></pre>
  
  <p>What i want to do is that the condition should fail when the object is empty.</p>
  
  <p>I tried using JSON.stringify(obj) but it still has curly braces('{}') within it.</p>