[core] Use Array.includes
instead of index checking
#42826
Labels
enhancement
This is not a bug, nor a new feature
ready to take
Help wanted. Guidance available. There is a high chance the change will be accepted
Follow up of #42283 (comment)
Dropping IE 11 support (#14420) allows us to replace
Array.indexOf('some string') [===|!==] -1
as a substitute forArray.includes
. This issue is to track this refactor.#42283 (comment) for a list of the Material UI-specific ones.
Search keywords: array includes
The text was updated successfully, but these errors were encountered: