Hacker News new | past | comments | ask | show | jobs | submit login

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




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

Search: