UNPKG

wallchpaper

Version:

Change wallpaper after an adjustable time

19 lines 639 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const shared_1 = require("./shared"); function shuffleArray(_arreglo) { const arreglo = shared_1.deepClone(_arreglo); for (let i = arreglo.length - 1; i > 0; i--) { const j = Math.floor(Math.random() * (i + 1)); const temp = arreglo[i]; arreglo[i] = arreglo[j]; arreglo[j] = temp; } return arreglo; } exports.shuffleArray = shuffleArray; function flatArray(arreglo) { return arreglo.reduce((accumulator, item) => accumulator.concat(item), []); } exports.flatArray = flatArray; //# sourceMappingURL=array.js.map