refactoring

main
Yanick Champoux 2021-12-13 11:04:57 -05:00
parent 360fc700b1
commit 523ae15a99
1 changed files with 1 additions and 2 deletions

View File

@ -15,8 +15,7 @@ export const processInput = (input) =>
grid[x][y] = true;
}
grid = [...grid];
grid = grid.map((x) => (x ? [...x] : []));
grid = [...grid].map((x) => (x ? [...x] : []));
instructions = instructions
.split("\n")