mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-03 09:18:05 +09:00
Use join instead of reduce
This commit is contained in:
parent
e46009f8be
commit
755212b0f3
@ -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 New Issue
Block a user