mirror of
https://github.com/Baipyrus/AoC-23.git
synced 2024-12-27 04:21:45 +00:00
filter empty
This commit is contained in:
parent
a70260cb8a
commit
ccb408c9e2
@ -1,7 +1,10 @@
|
||||
import { readFileSync } from "fs";
|
||||
const t0 = performance.now();
|
||||
|
||||
const categories = readFileSync("input.txt").toString().split("\n\n");
|
||||
const categories = readFileSync("input.txt")
|
||||
.toString()
|
||||
.split("\n\n")
|
||||
.filter((e) => e.length > 0);
|
||||
const seeds = categories[0]
|
||||
.split(" ")
|
||||
.slice(1)
|
||||
|
Loading…
Reference in New Issue
Block a user