refactoring

This commit is contained in:
Yanick Champoux 2021-12-13 11:04:57 -05:00
parent 360fc700b1
commit 523ae15a99

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")