Matt

Results 94 comments of Matt

Don't forget all the uses of `Array.indexOf('some string') [===|!==] -1` as a substitute for ~`Array.filter`~ `Array.includes`.

Sorry, I meant Array.includes, which IE 11 doesn't support. These should find the Material-UI specific ones but there are plenty more: [Components](https://github.com/search?q=repo%3Amui%2Fmaterial-ui+indexOf+-1+path%3A%2F%5Epackages%5C%2F%2F+path%3A%2F%5Epackages%5C%2Fmui-material%5C%2F%2F&type=code) [Docs](https://github.com/search?q=repo%3Amui%2Fmaterial-ui+indexOf+-1+path%3A%2F%5Edocs%5C%2Fdata%5C%2Fmaterial%5C%2F%2F&type=code)

@brijeshb42 it would be good if you could reply to @abriginets. I could generalise about why our zero runtime solution is a better fit, but it would be better coming...

> I think if anything happens to `sx` there should absolutely be a codemod that updates everything automatically and a very thorough migration guide. We have thousands of components that...