JavaScript parity check
a%2
n
=== a&(2
n
-1), but the latter’s faster