Add toLowerCase

This commit is contained in:
syuilo 2018-09-12 06:33:02 +09:00
parent 2118fadc48
commit 25ec5a24ab
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -1,7 +1,11 @@
export function capitalize(s: string): string {
return toUpperCase(s.charAt(0)) + s.slice(1).toLowerCase();
return toUpperCase(s.charAt(0)) + toLowerCase(s.slice(1));
}
export function toUpperCase(s: string): string {
return s.toUpperCase();
}
export function toLowerCase(s: string): string {
return s.toLowerCase();
}