Skip to content

[core] Use Array.includes instead of index checking #42826

@DiegoAndai

Description

@DiegoAndai

Follow up of #42283 (comment)

Dropping IE 11 support (#14420) allows us to replace Array.indexOf('some string') [===|!==] -1 as a substitute for Array.includes. This issue is to track this refactor.

#42283 (comment) for a list of the Material UI-specific ones.

Search keywords: array includes

Metadata

Metadata

Assignees

Labels

ready to takeHelp wanted. Guidance available. There is a high chance the change will be acceptedtype: enhancementIt’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions