It's ugly but readable. I spent like ~30min antagonizing about the "right way" to write this. There's *a ton* of other ways to do it, but I: 1. Expect this to never change 2. Only need to handle these cases Code is read more often than it's written.
@DaniPopes Like this is "cleaner" but objectively harder to understand
5.11K