Use join instead of reduce

This commit is contained in:
Aya Morisawa 2018-12-24 17:02:03 +09:00
parent e46009f8be
commit 755212b0f3

View File

@ -1,5 +1,5 @@
export function concat(xs: string[]): string {
return xs.reduce((a, b) => a + b, '');
return xs.join('');
}
export function capitalize(s: string): string {