How to check if object has any properties in JavaScript?

Posted by Ricky on Stack Overflow See other posts from Stack Overflow or by Ricky
Published on 2010-04-20T06:44:17Z Indexed on 2010/04/21 5:33 UTC
Read the original article Hit count: 169

Filed under:

Assuming I declare

var ad = {}; 

How can I check whether this object will contain any user-defined properties?

© Stack Overflow or respective owner

Related posts about JavaScript