3 ms·
Hopefully is-odd does not depend on is-even
by warpech 2y ago
Hopefully is-odd does not depend on is-even
- joegibbs 2y agoIt actually depends on "is-number", which is a very useful package containing num => typeof num === "number" No joke.
- dagw 2y agoTo be completely fair, it does a little bit more than that. It only considers finite numbers as 'numbers' (ie NaN and Inf aren't considered numbers). It also considers strings that can be parsed as numbers as numbers. Of course reasonable people could consider both those 'features' as bugs