NPM package is-odd installed almost 3M times this week
npmjs.com
npmjs.com
What is the point of the javascript universe's almost pathological degree of granularity? It can't merely be about bandwidth or latency, since combining these into a single module would probably reduce redundant code (and LOC in total) and the number of requests made to just 1.
- Math.js: http://mathjs.org
- Numbers.js: https://numbers.github.io
- Numeric JavaScript: http://www.numericjs.com
But the thing is, they are not suitable for such simple things like number % 2.
I've found it better to write my own "utils.js" functions, with clearly-defined semantics, that become part of the project strategy. This also has the benefit of reducing dependency churn and maintenance of package.json.