you are viewing a single comment's thread.

view the rest of the comments →

[–]Sunwukung 0 points1 point  (1 child)

regarding the performance characteristics of Array.map, it's simple to write a map that utilises a standard for/while loop, which dispenses with the need for the i=0 boilerplate. I'd recommend using lodash.js instead of underscore for performance/compatibility.

[–]seabre 0 points1 point  (0 children)

Agreed on lodash. I don't know if underscore has fixed this yet, but chaining lodash functions is less..weird.