mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 08:22:37 +02:00
Lots of Changes
This commit is contained in:
+2
-1
@@ -51,7 +51,8 @@ class Util {
|
||||
return promisify(setTimeout)(time);
|
||||
}
|
||||
|
||||
static shuffle(arr) {
|
||||
static shuffle(array) {
|
||||
const arr = array.slice(0);
|
||||
for (let i = arr.length - 1; i >= 0; i--) {
|
||||
const j = Math.floor(Math.random() * (i + 1));
|
||||
const temp = arr[i];
|
||||
|
||||
Reference in New Issue
Block a user