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

Method chaining mutator #418

Closed
nicojs opened this issue Oct 12, 2017 · 1 comment
Closed

Method chaining mutator #418

nicojs opened this issue Oct 12, 2017 · 1 comment
Labels
🚀 Feature request New feature request

Comments

@nicojs
Copy link
Member

nicojs commented Oct 12, 2017

It would be nice if we can mutate method chaining. For example:

this.someArray()
    .sort()
    .map(x => someFunction(x))
    .filter(someFilter);

Putting the .sort() method in comments did not fail a test.

So I am longing for a mutator that strips out array functions that do not alter the items (like map) but only affect the sequence (like sort and filter).

Originally reported by @riezebosch in #92

@nicojs nicojs added the 🚀 Feature request New feature request label Oct 12, 2017
@simondel
Copy link
Member

We're closing this issue right now. If we wanted to do this, we would have done it already.

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

No branches or pull requests

2 participants