SyntaxFix
Write A Post
Hire A Developer
Questions
if you are already using jQuery in your build just do this:
$(yourObject).length
It works nicely for me on objects, and I already had jQuery as a dependancy.