2018-11-08 20:03:46 -08:00
|
|
|
export function concat(xs: string[]): string {
|
2018-12-19 04:20:25 -08:00
|
|
|
return xs.reduce((a, b) => a + b, '');
|
2018-11-08 20:03:46 -08:00
|
|
|
}
|
|
|
|
|
2018-09-06 11:22:55 -07:00
|
|
|
export function capitalize(s: string): string {
|
2018-09-11 14:33:02 -07:00
|
|
|
return toUpperCase(s.charAt(0)) + toLowerCase(s.slice(1));
|
2018-09-11 11:51:33 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
export function toUpperCase(s: string): string {
|
|
|
|
return s.toUpperCase();
|
2018-09-06 11:22:55 -07:00
|
|
|
}
|
2018-09-11 14:33:02 -07:00
|
|
|
|
|
|
|
export function toLowerCase(s: string): string {
|
|
|
|
return s.toLowerCase();
|
|
|
|
}
|