Joel Thoms
Feb 11, 2017 · 1 min read

Jesus man. Why are you trying to turn this into a pissing contest? Drink less coffee.

You are absolutely right about peoples ability to override Array. Given that this will break pretty much everything, I am not concerned about that happening.

Excluding that scenario, the prototype resolution should be identical in both situations.

I still prefer making a function call instead of a method call off of a literal.

    Joel Thoms

    Written by

    Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!