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

feat: add dropArgs #681

Merged
merged 1 commit into from
Sep 8, 2018
Merged

feat: add dropArgs #681

merged 1 commit into from
Sep 8, 2018

Conversation

char0n
Copy link
Owner

@char0n char0n commented Sep 8, 2018

Closes #679

src/dropArgs.js Outdated

/**
* Accepts a function with any arity and returns a function with arity of zero.
* The function returned ignores any arguments supplied to it.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The returned function ignores any arguments supplied to it

src/index.d.ts Outdated
@@ -973,6 +973,12 @@ declare namespace RamdaAdjunct {
argsPass(combiningPredicate: Function, predicates: Function[]): Function;
argsPass(combiningPredicate: Function): (predicates: Function[]) => Function;

/**
* Accepts a function with any arity and returns a function with arity of zero.
* The function returned ignores any arguments supplied to it.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The returned function ignores any arguments supplied to it

@char0n
Copy link
Owner Author

char0n commented Sep 8, 2018

Everything addressed. Thanks @srghma

@char0n char0n merged commit 197b3f1 into master Sep 8, 2018
@char0n char0n deleted the char0n/dropArgs branch November 29, 2018 17:52
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 this pull request may close these issues.

2 participants