Skip to content

Commit

Permalink
add a Util.ucFirst function
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed May 3, 2012
1 parent dca41f4 commit f8f6c07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ Util.debugHandler = function( context, func ) {
};
};

Util.ucFirst = function(str) {
return str.charAt(0).toUpperCase() + str.slice(1);
};

if (!Array.prototype.reduce)
{
Array.prototype.reduce = function(fun /*, initial*/)
Expand Down

0 comments on commit f8f6c07

Please sign in to comment.