Convert array.indexOf() into array.includes()
Replace array.indexOf()
checks with array.includes()
.

Configuration
- This code assist provides refactoring suggestions. Learn how to configure the refactoring suggestion visibility.
Replace array.indexOf()
checks with array.includes()
.