I'm trying to check an array that I create as to whether or not a value is in the array (anywhere) at all or not. If the value is anywhere in the array it needs to do one thing, else another.

var Arr = [false, false, false, false, false];
// It works with the following:
// Arr = [true, false, false, false, false]
if(!$.inArray(false, Arr))
{
//False is not in the array at all - so continue with code
}
else
{
//False was found in the array
}

So this above code is working as if the if statement is true, however it clearly isn't.

If I change the array to: true, false, false, false, false the if statement is then false though, as it should be.

Basically what I need this code to do is to only be true if every value in the array is true.