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
@olov No support for e.g. `0123` (understandable since octal literals are deprecated), `0xFF`, `0b123` etc.?
-
-
@mathias that's 100% intentional -
@olov Ok, just checking! - 3 more replies
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.