Open Ivo-Evans opened 4 years ago
Instead of if (a == b || a == c || a == d) you can do if ([b, c, d].includes(a))
Hi Ivo, I just tested this and I'm not sure that it's right. It's checking that a includes b, c or d, not the other way round.
Instead of if (a == b || a == c || a == d) you can do if ([b, c, d].includes(a))