We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
prefer-destructuring-in-parameters
I think it's nicer, especially in simple functions.
foo.map(element => element.id);
Object.entries(foo).filter(pair => pair[1]);
foo.map(({id}) => id);
Object.entries(foo).filter(([, value])=> value);
WDYT?
The text was updated successfully, but these errors were encountered:
This should fail though:
Object.entries(foo).filter(([,, value])=> value);
Sorry, something went wrong.
Yes, it should not against no-unreadable-array-destructuring
no-unreadable-array-destructuring
This is now accepted.
Let's close this too, it reduces readability.
fisker
Successfully merging a pull request may close this issue.
I think it's nicer, especially in simple functions.
Fail
Pass
WDYT?
The text was updated successfully, but these errors were encountered: