From 755212b0f312a285191028142b4c6e9caea2c59c Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Mon, 24 Dec 2018 17:02:03 +0900 Subject: [PATCH] Use join instead of reduce --- src/prelude/string.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prelude/string.ts b/src/prelude/string.ts index c2ad8a2e7..b907e0a2e 100644 --- a/src/prelude/string.ts +++ b/src/prelude/string.ts @@ -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 {