Skip to content

refactor(userDataSync): replace indexOf with includes #182635

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

Merged
merged 1 commit into from
May 23, 2023
Merged

refactor(userDataSync): replace indexOf with includes #182635

merged 1 commit into from
May 23, 2023

Conversation

Juneezee
Copy link
Contributor

Hello 👋, first-time contributor here.

This PR replaces the use of .indexOf with .includes for cases where the method is used to check if an array contains a particular element. This results in improved code readability and better adherence to modern JavaScript best practices.

Closes #182634

This commit replaces the use of `.indexOf` with `.includes` for cases
where the method is used to check if an array contains a particular
element. This results in improved code readability and better adherence
to modern JavaScript best practices.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
@sandy081 sandy081 added this to the May 2023 milestone May 23, 2023
@sandy081 sandy081 enabled auto-merge May 23, 2023 14:21
@sandy081 sandy081 merged commit 84495ce into microsoft:main May 23, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace indexOf === -1 in userDataSync with includes
4 participants