Remove (useless?) pingback logic + retry send move on client side
[xogo.git] / utils / array.js
CommitLineData
41534b92
BA
1export const ArrayFun = {
2
3 // Double array intialization
4 init: function(size1, size2, initElem) {
5 return [...Array(size1)].map(() => Array(size2).fill(initElem));
6 },
7
8 range: function(max) {
9 return [...Array(max).keys()];
10 }
11
12};