From 523ae15a99794141e3f7c84fef99e68cff472f5a Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Mon, 13 Dec 2021 11:04:57 -0500 Subject: [PATCH] refactoring --- 2021/13/part1.mjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/2021/13/part1.mjs b/2021/13/part1.mjs index 3dec43d..67b52a6 100644 --- a/2021/13/part1.mjs +++ b/2021/13/part1.mjs @@ -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")