News for hackers. Stuff that matters.
Re:NPM – "is-even", 160k weekly downloads by tinco on Tuesday November 16, 2021 @11:50AM (#29242793)
That horrible realisation that because of its dependency on is-number, and all of its checks and pretty error messages I can imagine there's actually some valid use cases for this package. You can plug this right into a user input validation system and it would work perfect for production use cases in a way that num % 2 === 0 just wouldn't.

Almost other use case for it though.. horrible. This package would be much better if it was in some sort of namespace that indicated it's for user input validation only.

There are no comments on this comment yet.