4 ms·
https://www.npmjs.com/package/is-odd https://www.npmjs.com/package/is-odd
by jmiles90 6y ago
https://www.npmjs.com/package/is-odd https://www.npmjs.com/package/is-odd
- Orou 6y agoThis is a joke, right?
- f00zz 6y agoI notice there's an isEven as well. I wonder if they're mutually recursive.
- mr__y 6y agothere is also is-odd-even which uses both as dependencies, so it appears they're not https://www.npmjs.com/package/is-odd-or-even https://www.npmjs.com/package/is-odd-or-even
- f00zz 6y agoThe commit history is surprisingly long. The actual test evolved from return !!(~~i >> 0 & 1) to return !!(~~i & 1); to const n = Math.abs(value); return (n % 2) === 1;
- deleted 6y ago[deleted]