Ramda vs Lodash- 1 min
Most people I know would adopt Underscore or Lodash in that case. However, after reading the Mostly Adequate Guide to Functional Programming and watching the “Hey Underscore, You’re Doing It Wrong!” talk by Brian Lonsdorf, I decided to give Ramda a try in my last project.
The main advantages of Ramda, in my opinion, are the following:
- All Ramda functions are auto-curried;
- No side effects are allowed, unless you do it manually;
- The API for lists favors point-free code;
- There are lots of useful utilities, like
The example bellow shows these Ramda capabilities in a direct comparison with the Lodash version.