mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-14 18:25:45 +01: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