How is the uglify.js example correct? It replaces 'status !== 2' with '!(status>=2)'
> needsCancelButton(2)
false
Surely it should be: function needsCancelButton(n){ return 2 === n }
Also, more generally, uglify.js has no idea about the range of integers that could be passed in so how is a greater than optimization like that ever valid?