DEV Community

Cover image for Do you still use Lodash and Underscore in 2020?
Madza
Madza Subscriber

Posted on

Do you still use Lodash and Underscore in 2020?

Since 2015, ES6 and the above versions have implemented many of the features of the utility libraries like Lodash and Underscore, questioning the need to use them as 3rd-party packages.

This brings up the discussion, do you still use them today and could you name some specific use case if you find them useful?

Oldest comments (27)

Collapse
 
yoursunny profile image
Junxiao Shi

I have _.debounce in a project written in 2018. ES2018 doesn't have an equivalent.

Collapse
 
futureistaken profile image
R Z

Did you see how it works under the hood? I think, the functionality is redundant for the most use cases.

Collapse
 
puruvj profile image
PuruVJ • Edited

npmjs.com/package/throttle-debounce Works like a charm

Only a few bytes

Collapse
 
hussainarthuna profile image
Hussain Arthuna

Yes I do use Underscore JS in most of my projects. Really helpful ❤️

Collapse
 
alekseiberezkin profile image
Aleksei Berezkin

Both are ES6-iterables incompatible, so no.

Collapse
 
avneeshroks profile image
avneeshroks

I use lodash.. it's not that heavy so I don't mind..

Collapse
 
daviddalbusco profile image
David Dal Busco

Your question makes me think, DEV should add a Poll feature to Forem 😉.

To answer your question: directly no. I think the last time I used one of these was 2 years ago at least.

But, indirectly yes and pretty sure it is the case for most us. These libraries are still use by some third party libraries and therefore added to node_modules.

Collapse
 
defman profile image
Sergey Kislyakov

Poll feature

There is, actually. It's available only to admins, though.

Collapse
 
daviddalbusco profile image
David Dal Busco • Edited

Ah cool! Maybe some it will be accessible to all, would be nice 🤞

Collapse
 
cullophid profile image
Andreas Møller

I use keyBy, groupBy, mapKeys and mapValues quite regularly.

Collapse
 
theonlybeardedbeast profile image
TheOnlyBeardedBeast

Only for debounce and throttle

Collapse
 
angelmtztrc profile image
Angel Martinez

The last time I used underscore was two years or more ago, when nodejs still didn't support object destructuring and some other things like that

Collapse
 
neilcodes profile image
Neil

I occasionally use the individually packaged lodash functions. Having a known good deepClone function is oftentimes very handy.

Collapse
 
johnkazer profile image
John Kazer

Never really tried, I use Ramda instead.

Collapse
 
angelsantosa profile image
Angel Santos

Rambda makes code uncomfortable.

Collapse
 
johnkazer profile image
John Kazer

In what way? I realise Ramda has a different attitude to parameters from lodash (e.g. data last) but for me that's an improvement and enables more options for code organisation should you want to use them.