Using .includes() is much slower than using if. But why not use "i in [x...]"? It's faster than both. Check out this codepen:
Using .includes() is much slower than using if. But why not use "i in [x...]"? It's faster than both. Check out this codepen: