mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-07 12:57:14 +00:00
(js) Extend String with method 'capitalize'
This commit is contained in:
1 parent
12d5b57624
commit
520103cffe
1 file changed
+4
@@ -69,6 +69,10 @@ String.prototype.base64decode = function() {
|
||||
return output;
|
||||
};
|
||||
|
||||
String.prototype.capitalize = function() {
|
||||
return this.charAt(0).toUpperCase() + this.slice(1);
|
||||
}
|
||||
|
||||
String.prototype.asDate = function () {
|
||||
var newDate;
|
||||
var date = this.split("/");
|
||||
|
||||
Reference in new issue
Block a user