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

Neither underscore nor lodash use a for loop. Both use the native Object.keys when available. underscore uses native Array#forEach and lodash uses a while loop. So only lodash forEach is actually faster.

lodash is the only one to be performance focused. underscore always uses the native methods when possible.



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

Search: