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

4 lines
112 B
TypeScript
Raw Normal View History

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