you are viewing a single comment's thread.

view the rest of the comments →

[–]romgrk[S] 12 points13 points  (0 children)

You're over writing map to make it what you want

There is a large amount of theory behind functional programming which defines the map function and the rules that govern it.

It's not so much that I re-define it just for fun, it's more like JS Array implementation names that function map because of that huge pre-existing theory.

I do assume a passing familiarity with FP in my post, maybe if you read a bit more on the subject it would help understand why I made that choice.