DEV Community

Discussion on: A Pedant's Experiment on Optimizing Callback Functions for Array Iteration

Collapse
 
denisinvader profile image
Mikhail Panichev

Nice research.

I thought that the difference of arrow functions only in the lack of this and arguments but it seems like not. Does these statistics work only for array methods or for other cases (eg utility functions) as well?

Collapse
 
somedood profile image
Basti Ortiz

I haven't actually tried. I suppose copying the script I used and simply changing the Array#map into another utility function would suffice.