SyntaxFix
Write A Post
Hire A Developer
Questions
In jQuery i've made it in a such way:
len = function(obj) { var L=0; $.each(obj, function(i, elem) { L++; }); return L; }