projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix footer alignment
[vchess.git]
/
client
/
src
/
utils
/
array.js
diff --git
a/client/src/utils/array.js
b/client/src/utils/array.js
index
a8466c6
..
b438eaa
100644
(file)
--- a/
client/src/utils/array.js
+++ b/
client/src/utils/array.js
@@
-22,3
+22,8
@@
export function init(size1, size2, initElem)
{
return [...Array(size1)].map(e => Array(size2).fill(initElem));
}
+
+export function range(max)
+{
+ return [...Array(max).keys()];
+}