Use Array.includes()

Replace Array.indexOf() checks with Array.includes().

refactoring
ES2016 modernization
P42
P42+

Learn More

Available In