mirror of
https://github.com/Crocmagnon/advent-of-code.git
synced 2024-06-01 23:52:52 +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);
|
||
|
|