4 ms·
> is-even is literally just `(n % 2) === 1` Pretty sure that tells you if a number is odd. I guess maybe there is a reason these libraries exist.
by choward 7y ago
> is-even is literally just `(n % 2) === 1`
Pretty sure that tells you if a number is odd. I guess maybe there is a reason these libraries exist.
- soulofmischief 7y agoThat was just a typo, I meant the source for is-odd. I copy-pasted it. I use that exact syntax all the time in code, you don't need to be patronizing.