mishoo/UglifyJS — Issue #336: parseInt alternative
Author: Clorr
Created: 2012-03-09 14:43:07+00:00
State: open

Hi everyone,

I just discovered that parseInt can be replaced by a double tilde ~~ !

If it's it safe across all browsers, maybe this could be a great addon to the uglifying ?

If you want to have an idea, you may have a look here : http://jsperf.com/double-tilde-vs-parseint