summaryrefslogtreecommitdiff
path: root/js/cheesesteak.js
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2015-09-28 21:03:34 +0200
committerJuuso Lapinlampi <wub@partyvan.eu>2015-09-28 21:16:33 +0200
commit187f3000385f136c8766fbfb2d18d24832ecf4b5 (patch)
treebb87bac74a5e8d7ad17a0e98905af962e1fc95d7 /js/cheesesteak.js
parent043967a00987a840dffb3a5845246e5eef5a033b (diff)
Fix unexpected use of undefined with Boolean()
Airbnb style guide recommends checking booleans this way or using (!!window.FormData). The latter is more confusing for many. While !! is indeed 0.2% faster than Boolean(), it's called micro-optimization. There is no noticeable difference to the user in our use scenario and I prefer more readable code any day. Fixes ESLint no-undefined warning using Airbnb ES5 config. Reference: https://jsperf.com/boolean-conversion-speed
Diffstat (limited to 'js/cheesesteak.js')
0 files changed, 0 insertions, 0 deletions