Lots of Changes

This commit is contained in:
Daniel Odendahl Jr
2017-09-05 03:07:03 +00:00
parent 56f5c48ff8
commit 1c9b5156e9
19 changed files with 76 additions and 120 deletions
+2 -1
View File
@@ -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];