Anyway, here is my minifier for JavaScript numeric literals, I hope it is of use to youhttps://github.com/ferno/minify-numeric-literal …
-
-
It also replaced `NaN` with `0/0`, turning `x/NaN` (always `NaN`) into `x/0/0` (`Infinity`, `-Infinity`, `NaN`) and SAVING NO CHARACTERS
-
`1<<17` is shorter than `131072`. `~99` is shorter than `-100`. `1e9-7` is shorter than `999999993`. But when is such a substitution safe?
- 7 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.