mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-29 05:26:43 -06:00
11 lines
264 B
TypeScript
11 lines
264 B
TypeScript
export function capitalize(s: string): string {
|
|
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();
|
|
}
|