feat(server): seperate server part and ability to run server without electron

This commit is contained in:
Alexey Kasyanchuk
2018-04-05 16:28:02 +03:00
parent fac6736710
commit e244fabd2c
12 changed files with 227 additions and 203 deletions

View File

@ -2,7 +2,7 @@
* Shuffles array in place.
* @param {Array} a items An array containing the items.
*/
export default function shuffle(a) {
module.exports = function shuffle(a) {
let j, x, i;
for (i = a.length - 1; i > 0; i--) {
j = Math.floor(Math.random() * (i + 1));