projects
/
lmno.games
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use an array spread syntax instead of .fill(null)
[lmno.games]
/
scribe
/
scribe.jsx
diff --git
a/scribe/scribe.jsx
b/scribe/scribe.jsx
index be0de3799acf1f6bedaeb2171de86e9588832c38..78155949f782174a6ff40d2a80c7b5948f715868 100644
(file)
--- a/
scribe/scribe.jsx
+++ b/
scribe/scribe.jsx
@@
-268,7
+268,7
@@
class Game extends React.Component {
game_info: {},
player_info: {},
other_players: [],
- squares:
Array(9).fill(null)
.map(() => Array(9).fill(null)),
+ squares:
[...Array(9)]
.map(() => Array(9).fill(null)),
moves: 0,
next_to_play: "+"
};