Is there a simpler way to rewrite the following condition in JavaScript?
if ((x == 1) || (x == 3) || (x == 4) || (x == 17) || (x == 80)) {...}
Inspired by @Santosh I created a simplified version:
const input = x => [1, 3, 4, 17, 80].includes(x); console.log(input(10)); console.log(input(1));