mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-02 02:45:55 +02:00
Add toUpperCase function (#2697)
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
export function capitalize(s: string): string {
|
||||
return s.charAt(0).toUpperCase() + s.slice(1).toLowerCase();
|
||||
return toUpperCase(s.charAt(0)) + s.slice(1).toLowerCase();
|
||||
}
|
||||
|
||||
export function toUpperCase(s: string): string {
|
||||
return s.toUpperCase();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user