misskey-awawa/src/prelude/string.ts

8 lines
188 B
TypeScript
Raw Normal View History

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