mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 18:03:09 +02:00
Use join instead of reduce
This commit is contained in:
parent
d8620187ec
commit
0938ea3964
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue