mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
Use join instead of reduce
This commit is contained in:
parent
e46009f8be
commit
755212b0f3
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