Comment

Comment by phailhaus

I mean...sure? But this isn't very compelling when:

1. Many of these examples are just implementing the function (e.g., _.chunk). Yes, Lodash is written in Javascript, so yes, you can implement them yourself if you wanted.

2. Lodash is tree-shakeable, so if you import the functions you use directly, only those will be included in your JS bundle.

Just use Lodash, it's better than having to maintain your own hodgepodge of poorly documented and tested utility functions.

parent phailhaus 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton