If you, like me, have written a handful ad-hoc safeish JS string-to-number converter wrappers then check out strto: https://github.com/olov/strto
-
-
@mathias the schizophrenic nature of parseInt, Number(..) and the likes makes them much harder to use correctly for the 99% use cases. -
@olov Fair enough. Maybe make this more explicit in the README? Anyway, nice project! - 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.