3 ms·
I worked on a project that used lodash/fp for a couple of years. It really is game-changing if you have a large object that you need to change in similar ways a
by onion2k 5y ago
I worked on a project that used lodash/fp for a couple of years. It really is game-changing if you have a large object that you need to change in similar ways across different properties.
Theres also Ramda (https://ramdajs.com/ https://ramdajs.com/), which I slightly prefer because the documentation is significantly better.
- Rodeoclash 5y agoRambda is an excellent library but I've found difficult to use to teach newcomers to FP concepts. Once you start to get into transducers, lenses (which Lodash has, just calls them something else) then it can be a bit of a bridge too far as a tool to start with. Lodash/FP always seemed to me to strike that nice balance between complexity and getting things done. That said, if I was on a project with a bunch of developers that really grok'd FP concepts then Rambda would be my first pick, absolutely.