nodePong/client/lib/utils/js_utils.js

13 lines
194 B
JavaScript
Raw Normal View History

2016-02-14 14:37:31 +11:00
/**
* @file js_utils.js
* @author frtk@tetalab
*/
function countProperties(obj) {
var count = 0;
for (var prop in obj) {
if (obj.hasOwnProperty(prop)) count++;
}
return count;
}