97885953fec69b49deb5619166e5e054a99e64ec
[platform/framework/web/crosswalk-tizen.git] /
1 var forOwn = require('./forOwn');
2
3     /**
4      * Get object size
5      */
6     function size(obj) {
7         var count = 0;
8         forOwn(obj, function(){
9             count++;
10         });
11         return count;
12     }
13
14     module.exports = size;
15
16