4 ms·I normally do it with a bitwise and of numbers that end with a sequence of 1s, like 7. so `i & 7 == 7`by guappa 2y agoI normally do it with a bitwise and of numbers that end with a sequence of 1s, like 7. so `i & 7 == 7`