Re:4B If Statements
by jl6 on Thursday December 28, 2023 @03:23AM
(#38791247)
It’s true, the great thing about clean, reusable, modular code like this is that you can compose both of these packages to make a is-even-or-odd package.
[ Parent
| on HN ]
Well first you need to obviously build an OR package, part of your suite of logical operator packages, all depending on your battle-tested, high performance XOR package.
Groundbreaking!
You joke... but https://www.npmjs.com/package/is-odd-or-even