|
|
|
|
|
by smoldesu
1502 days ago
|
|
The "joke" is that you can determime whether a number is odd or even with a modulo in half the code and a fraction of the storage space of a library. There is no use case for it because it's a built-in feature of the language, and in the age of inane web bloat, supply chain attacks and Javascript cargo-culting, I think laughing at stuff like this is perfectly warranted. |
|
Or you could check the lowest bit. Better to abstract away from that implementation decision. ;)