9 ms·
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
by aliem 12y 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`)
- M2Ys4U 12y ago>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.