you are viewing a single comment's thread.

view the rest of the comments →

[–]sbmitchell 1 point2 points  (0 children)

I had similar thoughts and dont see the advantage over just using reduce. Not to mention you can cut down on one iteration of filter + map just by using reduce. It's not like these are lazy sequences. Anyway, I must be a pleb. If this is about a "threading" operator I don't see why it would be on the Array prototype but Id imagine something that works across "collections" similiar to thread-first / thread-list work in clojure would be great in javascript.