mirror of
https://github.com/Crocmagnon/advent-of-code.git
synced 2024-07-05 22:40:57 +02:00
5 lines
174 B
JavaScript
5 lines
174 B
JavaScript
let total = 0;
|
|
$("pre").innerText.trim().split("\n").map(el => Number(el)).reduce((prev, current) => {if (prev < current) {total += 1} return current});
|
|
console.log(total);
|
|
|