Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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...



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: