Flatten calls (#1200)

This commit is contained in:
Jaco
2021-11-18 08:48:15 +02:00
committed by GitHub
parent 93fb633ea6
commit 6f0aa35098
5 changed files with 69 additions and 72 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
export function arrayShuffle <T> (input: T[]): T[] {
const result = [...input];
const result = input.slice();
let curr = result.length;
if (curr === 1) {