Use an array spread syntax instead of .fill(null)
[lmno.games] / scribe / scribe.jsx
index be0de3799acf1f6bedaeb2171de86e9588832c38..78155949f782174a6ff40d2a80c7b5948f715868 100644 (file)
@@ -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: "+"
     };