mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 16:35:10 +00:00
(js) Extend String with method 'capitalize'
This commit is contained in:
@@ -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