Re:Ramda: A practical functional library for JavaScript prog...
by koolba on Friday August 04, 2023 @03:28PM
(#37004697)
What’s the alternative for functional transforms in redux selectors?
[ Parent
| on HN ]
Re:Ramda: A practical functional library for JavaScript prog...
by woolly on Friday August 04, 2023 @03:39PM
(#37004836)
I have used lodash/fp successfully in Javascript projects at current and previous job. Not sure about the TypeScript support.
Re:Ramda: A practical functional library for JavaScript prog...
by danenania on Friday August 04, 2023 @07:47PM
(#37007352)
I like immer for this kind of thing: https://github.com/immerjs/immer
You can do immutable transformations without getting bogged down in FP abstractions.
Re:Ramda: A practical functional library for JavaScript prog...
by solardev on Saturday August 05, 2023 @10:55AM
(#37012620)
If you use something like redux toolkit query, it already abstracts that for you using Immer internally. You can just write a simple arrow function or use lodash or underscore or whatever pleases you.