So I have an array which has 3 possible values: 0, 1 or 2
var a = [0,0,0];
I want to check if a[0], a[1], and a[2] all have the equal value of "1" or "2". How can I do this?
So 0,0,0 would return false, 1,2,1 false, but 1,1,1 or 2,2,2 would be true.