From 7a7a788a11c0f6508837a32c4332545870eca653 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sat, 31 Dec 2022 17:04:04 +0100 Subject: 2022-21 part 1 in js --- 2022/20-Grove-Positioning-System/first.js | 6 +++--- 2022/20-Grove-Positioning-System/second.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to '2022/20-Grove-Positioning-System') diff --git a/2022/20-Grove-Positioning-System/first.js b/2022/20-Grove-Positioning-System/first.js index 7a49d57..c2f351a 100644 --- a/2022/20-Grove-Positioning-System/first.js +++ b/2022/20-Grove-Positioning-System/first.js @@ -65,9 +65,9 @@ class File { function load(filename) { return new File( fs.readFileSync(filename, "utf8") - .trim() - .split("\n") - .map(line => parseInt(line)) + .trim() + .split("\n") + .map(line => parseInt(line)) ); } diff --git a/2022/20-Grove-Positioning-System/second.js b/2022/20-Grove-Positioning-System/second.js index a01acc4..92185e0 100644 --- a/2022/20-Grove-Positioning-System/second.js +++ b/2022/20-Grove-Positioning-System/second.js @@ -65,9 +65,9 @@ class File { function load(filename) { return new File( fs.readFileSync(filename, "utf8") - .trim() - .split("\n") - .map(line => parseInt(line)) + .trim() + .split("\n") + .map(line => parseInt(line)) ); } -- cgit v1.2.3