Skip to content

Commit 7858f92

Browse files
committed
Revert all
1 parent 0ff0724 commit 7858f92

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/compiler/core.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -687,12 +687,10 @@ export function concatenate<T>(array1: T[] | undefined, array2: T[] | undefined)
687687
export function concatenate<T>(array1: readonly T[] | undefined, array2: readonly T[] | undefined): readonly T[] | undefined;
688688
/** @internal */
689689
export function concatenate<T>(array1: readonly T[] | undefined, array2: readonly T[] | undefined): readonly T[] | undefined {
690+
// This is a comment
690691
if (array2 === undefined || array2.length === 0) return array1;
691692
if (array1 === undefined || array1.length === 0) return array2;
692-
let result: T[] | undefined;
693-
for (let i = 0; i < array1.length; i++) result = append(result, array1[i]);
694-
for (let i = 0; i < array2.length; i++) result = append(result, array2[i]);
695-
return result;
693+
return [...array1, ...array2];
696694
}
697695

698696
function selectIndex(_: unknown, i: number) {

0 commit comments

Comments
 (0)