by onion2k · 8y ago · 0 comments
If you're using something to transpile (eg Babel) your code then you don't really need anything like lodash. es6 has most of the array and object functions you typically want, like map, reduce, filter, Array.from(), etc.
Date formating with Moment.js is really nice, but it's big (30kb) so if you're only using a small part of the functionality it might be better to use Luxon (https://moment.github.io/luxon/index.html) as that should be tree-shakable using Webpack.
But I don't like that it is huge and not modular. And that it is not strict in argument checking and accepts anything without throwing any errors.