Jason Knight
1 min readSep 19, 2020

--

Sadly whilst many of these are good for "writing less code" -- and as I'm always saying "the less code you use, the less there is to break" -- JavaScript arrays are extremely slow performing. Likewise adding the overhead of callbacks with the various each/every/map functions only drags performance down more.

... and don't even get me started about the painfully cryptic code of arrow functions that can leave you scratching your head if you come back to the code after a year.

You've got some good advice here, but people need to be aware of the performance hit this "more convenient code" brings with it.

--

--

Jason Knight
Jason Knight

Written by Jason Knight

Accessibility and Efficiency Consultant, Web Developer, Musician, and just general pain in the arse

Responses (2)