Commit f2b96b46 authored by nanahira's avatar nanahira

generic

parent 5d4c00c2
Pipeline #10135 failed with stages
in 6 minutes and 18 seconds
......@@ -31,7 +31,7 @@ const config: Config = yaml.parse(
fs.readFileSync(process.argv[2] || './config.yaml', 'utf-8'),
);
function shuffle(arr: any[]) {
function shuffle<T>(arr: T[]): T[] {
for (let i = arr.length - 1; i >= 0; i--) {
const rIndex = Math.floor(Math.random() * (i + 1));
const temp = arr[rIndex];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment