diff options
| author | Juuso Lapinlampi <wub@partyvan.eu> | 2015-09-28 21:03:34 +0200 |
|---|---|---|
| committer | Juuso Lapinlampi <wub@partyvan.eu> | 2015-09-28 21:16:33 +0200 |
| commit | 187f3000385f136c8766fbfb2d18d24832ecf4b5 (patch) | |
| tree | bb87bac74a5e8d7ad17a0e98905af962e1fc95d7 /js/pomf.js | |
| parent | 043967a00987a840dffb3a5845246e5eef5a033b (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/pomf.js')
0 files changed, 0 insertions, 0 deletions
