by paulgb · 3y ago · 0 comments
Not a rhetorical question. I don’t use lodash but as a primarily non-JS dev I’ve referred to the source some times when I’m writing JS as a reference for the idiomatic way to do simple things.
I’ve found some weird things, like isEmpty is technically O(n), but this turns out to be a limitation of JavaScript rather than a lodash issue.
[1]: https://github.com/lodash/lodash/blob/4.17.15/lodash.js#L114...
Lodash has and still is a good standard / reference for these simple operations imo.