|
I disagree about lodash being "moot". There are tons of things that lodash still provides that can't be easily replicated. Just in the last month or so I've used throttle, debounce, uniqBy, memoize, get, and i'm sure more. Sure, things like map, filter, find, reduce, etc... are made obsolete, and `Object.values` is a huge win to iterating objects or arrays with the same code, but lodash is far from useless. And the way the library is structured, pulling in just one or 2 functions is fairly lightweight if you are using a bundler like webpack/rollup. |
Not really. `_.map` for example works on Objects, and property access is very nice.
`_.map(object, 'myProperty.mySubProperty')`
vs
`Object.values(object).map(i => i.myProperty ? i.myProperty.mySubProperty : undefined)`