How to check if object has any properties in JavaScript?
<p>Assuming I declare </p>

<pre><code>var ad = {}; 
</code></pre>

<p>How can I check whether this object will contain any user-defined properties?</p>
