Glossary: Algorithms Beyond the Basics in JavaScript
Infinity
A JavaScript value larger than every other number, and `Infinity + 1` is still `Infinity`. It is used to mean "no route or amount found yet", since it loses every comparison against a smaller value.