1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-25 20:18:18 +09:00
MisskeyIO/src/prelude/string.ts

12 lines
264 B
TypeScript
Raw Normal View History

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