4 ms·
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
by tinco 5y ago
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.