-2 and 1 are mod 3 essentially the same. I don't see here the problem except of course someone didn't expect this result and used it for indexing
From a mathematical standpoint, I've never seen a use for returning -2 here. I want something unique for the group, so I can ask e.g. `x mod 3 == y mod 3` and have it work regardless of whether x or/and y are negative.
-13 \equiv 5 \pmod 3
it is the case that: > -13 % 3 === 5 % 3
false
I think it's better to use a convention where for all a, b, m, if a and b are congruent mod m, then a%m === b%m