ramda-extension
ramda-extension copied to clipboard
🤘Utility library for functional JavaScript. With ❤️ to Ramda.
I think it benefits the community to know that alternatives exist and which to pick when. It would be nice to create a short summary comparison in readme.med that highlights...
Do you think that this would be useful? ```js const predicate = ifOtherwiseFalse(isValid, toUpper) predicate("nonValid") // false predicate("valid") // "VALID" ```
- use `sideEffects: false` - trace why the `es` distribution does break tree-shaking - create sample repo with R_ and Webpack for easy debugging and experimenting
```js sortByProp("foo")([{ foo: 2 }, { foo: -2 }]) // [{ foo: -2 }, { foo: 2 }] sortByPath(["foo", "bar"])([{ foo: { bar: 2 } }, { foo: { bar:...
``` const firstAndLastArg = R_.nthArgs([0, -1]) const f = (a, b) => [a, b]; firstAndLastArg(f)('first', 'second', 'last') // ['first', 'last'] ```
Example in trace is not working out of the box.
Allow to show ramda functions in online documentation.
in my experience, TitleCase is a much more common way to express toUpperFirst. This will help others find a solution to title casing in ramda. **Checklist** - [ ] issue...