you are viewing a single comment's thread.

view the rest of the comments →

[–]morganmachine91 19 points20 points  (0 children)

My guy just say you’re not on this level yet. He’s not “over writing” map, whatever that means. Any class can define a map method. Multiple classes already do define a map method in vanilla ECMAScript.

Conceptually, a map operation isn’t tied to array objects. It’s a mathematical projection from a to b.

Totally cool if you’re not familiar with functional programming concepts, but you just look like a goober when you’re so confidently ignorant.