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

prefer-compact should warn if filter uses default identity function #177

Closed
martinmacko47 opened this issue Feb 3, 2018 · 2 comments
Closed

Comments

@martinmacko47
Copy link

As prefer-compact considers an explicit identity function a warning:

_.filter(arr, (x) => x)

It should consider the implicit one a warning as well, shouldn't it?

_.filter(arr)
@ganimomer
Copy link
Contributor

ganimomer commented Feb 4, 2018

You're right, it should. Fixing.

@ganimomer
Copy link
Contributor

Fixed in version 2.6.1. Thanks for opening the issue!

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

No branches or pull requests

2 participants