Viewing File: /home/ubuntu/misabloom-frontend-base/node_modules/@ethersproject/random/lib.esm/shuffle.js

"use strict";
export function shuffled(array) {
    array = array.slice();
    for (let i = array.length - 1; i > 0; i--) {
        const j = Math.floor(Math.random() * (i + 1));
        const tmp = array[i];
        array[i] = array[j];
        array[j] = tmp;
    }
    return array;
}
//# sourceMappingURL=shuffle.js.map
Back to Directory File Manager