mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-29 22:59:20 +09:00
16 lines
354 B
TypeScript
16 lines
354 B
TypeScript
export function concat(xs: string[]): string {
|
|
return xs.reduce((a, b) => a + b, "");
|
|
}
|
|
|
|
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();
|
|
}
|