Hacker News new | ask | show | jobs
by aliem 4154 days ago
The most important feature is chaining and lazy evaluation.

I think the most useful functions are the typechecking utilities (typeof in javascript is the most useless keyword the human kind engineered in a language).

In the end is a very nice library to work with when it does not get in the way (of course, if you are using `_.each([], fn)`, you should think again and use `Array#forEach` or a nice `for`)

1 comments

>of course, if you are using `_.each([], fn)`, you should think again and use `Array#forEach` or a nice `for`

You probably shouldn't if you're in a hot path. LoDash actually outperforms some native ES5 features, Array#forEach being one of them IIRC.