DEV Community

Discussion on: Why is Lodash Still Useful?

Collapse
 
lexlohr profile image
Alex Lohr

A very nice example is _.isEmpty(): in most cases, you are testing if an object has no enumerable keys. You'll rarely need to check at the same time if the length of an array or a string is zero, but lodash will (needlessly in the stated case) check the input for all available types.

Thread Thread
 
aumayeung profile image
John Au-Yeung

This is one of the ones that we can implement ourselves without much effort.