Hacker News new | ask | show | jobs
by OskarS 2559 days ago
Even worse: it is only used one time in the entire code-base, and that one time was to check whether or not a value returned by the string length function was odd.

What.... why.... the only concievable point of a package like this is that at least it does the kind of type-checking needed to compensate for JavaScripts weak typing system, but why do you need to check the type of String.length?! Do you really think it's going to start spitting anything other than a positive integer? Fucking hell....

1 comments

0 is not a positive number.
Fair enough, "non-negative integers" then.