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

Use the tap method in the select helper #78

Merged
merged 4 commits into from
Jul 4, 2012
Merged

Use the tap method in the select helper #78

merged 4 commits into from
Jul 4, 2012

Conversation

jairodemorais
Copy link
Contributor

Use the tap method in the select helper, so eq, ltegte, lt and gt can use dynamic values.

context: {foo : 10 , x : 10},
expected: "foobar",
message: "Select helper works correctly using tap for lte"
},
Copy link
Contributor

Choose a reason for hiding this comment

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

can the select helper support the same too?

can we add a unit test for it ?

if( params && params.key){
var key = params.key;
key = this.tap(key, chunk, context);
if( key ){
Copy link
Contributor

Choose a reason for hiding this comment

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

tap always the returns the input back as output , if the input was not a function

so this if (key) check may be redundant

vybs added a commit that referenced this pull request Jul 4, 2012
Use the tap method in the select helper
@vybs vybs merged commit 5e34211 into linkedin:master Jul 4, 2012
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