Skip to content
loading...

re: Why is Lodash Still Useful? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: but you should be conscientious about the implications. This. It makes me unsure if I should use lodash.clonedeep or lodash.merge... If I write ...
 

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.

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

code of conduct - report abuse