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-array-some: Check cases comparing .find() with undefined #1422

Merged
merged 4 commits into from
Jul 14, 2021

Conversation

fisker
Copy link
Collaborator

@fisker fisker commented Jul 14, 2021

Fixes #1258

@fisker fisker marked this pull request as ready for review July 14, 2021 09:21
@sindresorhus sindresorhus changed the title prefer-array-some: Check cases compare .find() with undefined prefer-array-some: Check cases comparing .find() with undefined Jul 14, 2021
@sindresorhus sindresorhus merged commit 3dc2f77 into sindresorhus:main Jul 14, 2021
@fisker fisker deleted the prefer-array-some-undefined branch July 14, 2021 11:08
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.

Suggest using Array.some instead of Array.find(...) != null
2 participants