DEV Community

Discussion on: 5 Must Know Lodash Methods

Collapse
 
sebbdk profile image
Sebastian Vargr • Edited

Recommendation: Do not use Lodash in current year.

Like others here have pointed out, It is a literal waste of kb's in your payload. :)

Collapse
 
doooby profile image
Ondřej Želazko • Edited

well, import { debounce } from 'lodash'; kinda takes your argument away (there are even separate packages for everything). also, in past years I'd been writing my own debounce function in every project, it isn't that a complex mechanism. I'm not that foolish any more. the lodash's version is superior and documented. and that's gist of it.

Collapse
 
sebbdk profile image
Sebastian Vargr

debouncing is not Lodash tho, it’s part of the library by practical coincidence.

It could also be a separate package like you point out.

Lodash was made in an age when array methods where lacking and polyfiling was less common.

If they changed the focus of the library, then I did not get the memo. :)