Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add partial, partialRight #458

Open
viveleroi opened this issue Jan 10, 2024 · 2 comments · May be fixed by #466
Open

Add partial, partialRight #458

viveleroi opened this issue Jan 10, 2024 · 2 comments · May be fixed by #466

Comments

@viveleroi
Copy link
Contributor

We're hoping to replace lodash and ramda entirely with remeda. There are a few functions remeda doesn't have that I believe it could benefit from.

Lodash and ramda both have partial, and partialRight methods and I don't see any replacements in remeda yet. We use lodash's parseInt which is sort of a partialRight of Number.parseInt with the radix of 10 already applied. I was going to write my own but noticed there's no partial/currying methods yet.

Lodash docs
Lodash source

@eranhirsch
Copy link
Collaborator

I'll be happy to look at any PR that does this. If you want to put less work upfront with the risk of getting rejects you can send a PR with just the logic and types (without the tests) so we can discuss over the PR.

@cjquines cjquines linked a pull request Jan 20, 2024 that will close this issue
4 tasks
@cjquines
Copy link
Collaborator

along these lines, we can also add:

  • curry and curryRight like lodash or ramda. interestingly enough this can be strongly typed, see this library
  • partialObject like ramda; implementation is easy but having the typings would be nice, maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants