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
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
On Firefox, the
||
method was almost twice as fast asincludes
. 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