Skip to content

Commit

Permalink
hashlenght
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Tahler committed Jan 23, 2013
1 parent 1fe1965 commit 01086ec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/actionHero
Expand Up @@ -127,6 +127,14 @@ binary.utils.padDateDoubleStr = function(i){
return (i < 10) ? "0" + i : "" + i;
};

binary.utils.hashLength = function(obj) {
var size = 0, key;
for (key in obj) {
if (obj.hasOwnProperty(key)) size++;
}
return size;
};

//////////
// Load //
//////////
Expand Down

0 comments on commit 01086ec

Please sign in to comment.