mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-12 05:38:10 +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 {
|
export function concat(xs: string[]): string {
|
||||||
return xs.reduce((a, b) => a + b, '');
|
return xs.join('');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function capitalize(s: string): string {
|
export function capitalize(s: string): string {
|
||||||
|
Loading…
Reference in New Issue
Block a user