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

I like each better than for primarily for readability. However I usually use the each from underscore, and I'm not sure how well that one performs.


The performance of _.each should be very close to that of the native Array#forEach because it delegates to the native method when it's available: https://github.com/jashkenas/underscore/blob/6db5b93eac3eacd...




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: