X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=docs%2Fsrc%2FString.js.html;h=60bc24a3cbb01ea2288bab1cf6c33d053a286167;hp=565b0673ecb9387b3cc69fe79d8e6dc59fbb510e;hb=18480d449e889bafc18e683dca94b2ff4729dbd4;hpb=df2e2de75c4a885e8935bbf1d745c498c9055beb diff --git a/docs/src/String.js.html b/docs/src/String.js.html index 565b0673ec..60bc24a3cb 100644 --- a/docs/src/String.js.html +++ b/docs/src/String.js.html @@ -114,4 +114,14 @@ sort = (sort == 'ASC' ? 'DESC' : 'ASC'); ); }; + +/** + * Make the first letter of a string uppercase + * + * @return {String} The new string. + */ +String.prototype.toUpperCaseFirst = function () { + return this.charAt(0).toUpperCase() + this.slice(1); +}; + \ No newline at end of file