Comment by josephg

6 hours 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.

_.any, some, every, keyBy.

  • _.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

    • It 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.