News for hackers. Stuff that matters.
Re:Array.js: A better array for the browser and Node.js by nadaviv on Tuesday February 19, 2013 @07:41PM (#5248206)
It has one important downside tho - because you can't chain calls, your code ends up much less readable: It needs to be read from the inside-out, and the functions you're applying on the array are in reverse order compared to the order of execution. Its also harder to to see which arguments go to which function.

Compare

    _(array).map(func).filter(func).reduce(func)
and:

   _.reduce(_.filter(_.map(array, func), func), func)

There are no comments on this comment yet.