I have an array and I need to check if that array contains 2 and 3.
For example a = [1, 3]
.
I can do it with
a.includes(2) && a.includes(3)
I tried the following but I get inconsistent result, I don't understand why:
a.includes(1 && 3)
// true
a.includes(1 && 2)
// false
a.includes(2 && 3)
// true