3 ms·
The funniest (or best part) about those two packages is that is-even has a dependency to is-odd and does just negate the output of is-odd.
by chrisandchris 3y ago
The funniest (or best part) about those two packages is that is-even has a dependency to is-odd and does just negate the output of is-odd.
- jl6 3y agoIt’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.
- lvncelot 3y agoWell 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.
- wiseowise 3y agoGroundbreaking!
- kparaju 3y agoYou joke... but https://www.npmjs.com/package/is-odd-or-even https://www.npmjs.com/package/is-odd-or-even
- layer8 3y agoIf would be even funnier if is-odd would simultaneously do the same thing in reverse.