3 ms·
Can you give some examples? I’ve written js / ts for 10-15 years and I’ve never reached for lodash in my life.
by josephg 1y ago
Can you give some examples? I’ve written js / ts for 10-15 years and I’ve never reached for lodash in my life.
- epicureanideal 1y ago_.any, some, every, keyBy.
- skrebbel 1y ago_.any doesn’t seem to exist. Some and every are also in JS (with the same names even!). keyBy is just Array.map -> Object.fromEntries
- deleted 1y ago[deleted]
- dsego 1y agoIt was more useful before when browsers didn't support array.map and fromEntries. That's the origin of all these libraries, but browsers caught up. Things like keyBy, groupBy, debounce, uniqueId, and some others, are still useful.