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: false positive for objects. #214

Open
burtek opened this issue Aug 20, 2019 · 0 comments
Open

prefer-compact: false positive for objects. #214

burtek opened this issue Aug 20, 2019 · 0 comments

Comments

@burtek
Copy link

burtek commented Aug 20, 2019

prefer-compact gives false-positives for objects. _.filter allows collections (both arrays and objects), while _.compact only arrays...

by the way, how is _.compact(arr) better than _.filter(collection)? They both do the same, and _.filter allows for both arrays and objects...

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

1 participant