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 asList param option #78

Merged
merged 1 commit into from
Oct 12, 2017
Merged

Conversation

calvinb
Copy link
Contributor

@calvinb calvinb commented Oct 11, 2017

No description provided.

src/asList.js Outdated
return pair[ 1 ].asList;
} )
.value()
.forEach( function( pair ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we do a reduce here?

var result = query;

specialParamOptions.forEach( function( option ) {
result = option.transformQuery( params, result );
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be a reduce too.

@digitalBush
Copy link
Contributor

@digitalBush digitalBush merged commit 60d4df9 into LeanKit-Labs:master Oct 12, 2017
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.

None yet

2 participants