SyntaxFix
Write A Post
Hire A Developer
Questions
Consider using underscore.js. It will allow you to check the size i.e. like that:
var data = {one : 1, two : 2, three : 3}; _.size(data); //=> 3 _.keys(data); //=> ["one", "two", "three"] _.keys(data).length; //=> 3