βItβs only work if somebody makes you do it.β β’ craft code β’ creative ideas β’ cutting edge β’ author β’ senior front end architect β’ professional scuba diver β’ adventures above and below the sea level
Location
Germany
Work
Senior Front End Architect, Full Stack Engineer, Creative Technologist and Scuba Diving Professional
This is almost twice as fast on Firefox. On Chrome, the two methods are similarly efficient with
i=>i
being ever so slightly quicker. Performance linkI guess this is because allowing the internal Boolean coercion to do its thing is faster than explicitly doing it yourself.
Thank you for the effort of setting up the performance comparison and sharing with us. I amended he article on updated the code.
Cheers!