From bcd8071424e48a13e659ae095da7f4abf5e55646 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Wed, 6 Dec 2023 23:00:25 -0700 Subject: rm unnecessary console logs --- aoc_2023/day-07/part_1.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'aoc_2023/day-07/part_1.ts') diff --git a/aoc_2023/day-07/part_1.ts b/aoc_2023/day-07/part_1.ts index 3288873..74975a4 100644 --- a/aoc_2023/day-07/part_1.ts +++ b/aoc_2023/day-07/part_1.ts @@ -58,12 +58,8 @@ export const main = async (lines: string[]): Promise => { } return scoreOne - scoreTwo; }); - console.log(hands); - return hands.reduce((acc, { hand, bid }, i) => { - console.log(hand, bid, i + 1); - return acc + bid * (i + 1); - }, 0); + return hands.reduce((acc, { bid }, i) => acc + bid * (i + 1), 0); }; // -- cgit v1.2.3-70-g09d2