Add group function (#3175)

This commit is contained in:
Aya Morisawa 2018-11-09 13:03:46 +09:00 committed by syuilo
parent 276edd7cc2
commit 500fc47618
3 changed files with 29 additions and 12 deletions

View file

@ -1,3 +1,7 @@
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));
}