2 ms·
Underscore uses native methods for map/reduce/forEach when possible. For a modern browser the performance difference is comparable, or even faster for a map tha
by tomjakubowski 14y ago
Underscore uses native methods for map/reduce/forEach when possible. For a modern browser the performance difference is comparable, or even faster for a map than an unrolled for loop:
http://jsperf.com/native-for-loop-vs-array-foreach-and-array-map-vs-lodas http://jsperf.com/native-for-loop-vs-array-foreach-and-array...