4 ms·
I mean, there's this https://www.npmjs.com/package/is-even https://www.npmjs.com/package/is-even
by rplnt 3y ago
I mean, there's this
https://www.npmjs.com/package/is-even https://www.npmjs.com/package/is-even
- vegardlarsen 3y agoThe actual implementation of this package is even better. https://github.com/i-voted-for-trump/is-even/blob/master/index.js https://github.com/i-voted-for-trump/is-even/blob/master/ind...
- tarruda 3y agoWhat is even better is the fact that it has 200k weekly downloads. I thought this was supposed to be a troll package.
- doikor 3y agoIt is a troll package. Just a successful one.
- whaleofatw2022 3y agoDon't fall for the salesman's "it was a joke" play. Is-thirteen, now THAT is a troll package.
- chupapimunyenyo 3y agoBut why do people use this? Is this a dependency in some popular library?
- madarcho 3y agoWell worth a quick trip to the source to see how it's implemented. After all, how would the author get around to packaging 4B if statements, like the OP?
- ezconnect 3y agoHe could package it to the size limit and range the numbers it could detect. Add a note to download particular package if the number is out of range of the package and that package is not installed.
- rplnt 3y agoOne package should probably handle range of one million. Now it's just 4000 packages to install. You wouldn't even notice that in an average js project.