3 ms·
there 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
by mr__y 6y ago
there 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]