by bdc · 13y ago · 0 comments
fireToken : 1 === f.tradeTokens.data.fireToken ? !0 : !1,
Why might that be a desired output from a minifier? Why not simply fireToken : 1 === f.tradeTokens.data.fireToken,
[1] https://gist.github.com/anonymous/5133829#file-simcityui-js-... fireToken: f.tradeTokens.data.fireToken === 1 ? true : false
In my company I see JS code like the following: if (!!someFlag) { /* ... */ }