mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -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 {
|
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…
Add table
Reference in a new issue