DEV Community

Discussion on: Speed Up Your Javascript With These Simple Methods

Collapse
 
cavazzatommaso profile image
cavazzatommaso

I have a question about the reduce loop activity. Why it's not the same using array.length or a local variable? Array.length is not a method so why there will be less activity?