anime-quiz
Version:
A simple module to generate anime quiz.
20 lines (19 loc) • 574 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Utils = void 0;
class Utils {
constructor() {
this.shuffleArray = (array) => {
let counter = array.length;
while (counter > 0) {
const index = Math.floor(Math.random() * counter);
counter--;
const temp = array[counter];
array[counter] = array[index];
array[index] = temp;
}
return array;
};
}
}
exports.Utils = Utils;