2018-09-07 03:22:55 +09:00
|
|
|
export function capitalize(s: string): string {
|
2018-09-12 03:51:33 +09:00
|
|
|
return toUpperCase(s.charAt(0)) + s.slice(1).toLowerCase();
|
|
|
|
}
|
|
|
|
|
|
|
|
export function toUpperCase(s: string): string {
|
|
|
|
return s.toUpperCase();
|
2018-09-07 03:22:55 +09:00
|
|
|
}
|