Skip to content

refactor(userDataSync): replace indexOf with includes#182635

Merged
sandy081 merged 1 commit intomicrosoft:mainfrom
Juneezee:refactor/includes
May 23, 2023
Merged

refactor(userDataSync): replace indexOf with includes#182635
sandy081 merged 1 commit intomicrosoft:mainfrom
Juneezee:refactor/includes

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 <[email protected]>
@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