diff options
author | 2018-12-08 17:09:12 +0100 | |
---|---|---|
committer | 2018-12-08 17:09:12 +0100 | |
commit | 7ab7605c220c665607844784ffbf21a030888f8e (patch) | |
tree | 5285647db76b4cc16444d2fb81b7fb0585367416 /src/helpers | |
parent | feat(Service): Add error screen for services that failed to load (diff) | |
download | ferdium-app-7ab7605c220c665607844784ffbf21a030888f8e.tar.gz ferdium-app-7ab7605c220c665607844784ffbf21a030888f8e.tar.zst ferdium-app-7ab7605c220c665607844784ffbf21a030888f8e.zip |
Revamp app loaders
Diffstat (limited to 'src/helpers')
-rw-r--r-- | src/helpers/array-helpers.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/helpers/array-helpers.js b/src/helpers/array-helpers.js new file mode 100644 index 000000000..ffb3b63dc --- /dev/null +++ b/src/helpers/array-helpers.js | |||
@@ -0,0 +1,4 @@ | |||
1 | export const shuffleArray = arr => arr | ||
2 | .map(a => [Math.random(), a]) | ||
3 | .sort((a, b) => a[0] - b[0]) | ||
4 | .map(a => a[1]); | ||