re: Using arrow functions might be costing you performance VIEW POST

re: Actually jsPerf shows that arrow functions with implicit return are the fastest. But the difference in performance is so small, that it shouldn'...

This might be more interesting to compare: jsperf.com/fufufufu/3


In my test run the results are almost the same for all three tests (ops/sec varies +-1%).

That is the point ;)

This article is pretty fear mongering and statistically incorrect 🤓.

  • Don't worry about using arrow function expressions
  • Don't worry about using implicit return

In the same line:

  • Don't worry about relying on Automatic Semicolon Insertion
  • Don't worry about using "class"es or (other) prototype-inheritance

The bottleneck of the code is not going to be in the syntax one uses.

Code of Conduct Report abuse