DEV Community

Discussion on: Stop Writing JavaScript Like This

Collapse
 
jonrandy profile image
Jon Randy 🎖️ • Edited

On Firefox, the || method was almost twice as fast as includes. So, if there's almost no difference on Chrome, and a big difference in favour of || on Firefox, || would seem the better choice overall for performance? jsbench.me/njkuruuurr/1