function areWithin(valueArray, boundsArray) {
    var pass = true;
    for(var i = 0, len = valueArray.length; i < len; i++) {
        var value = valueArray[i];
        var bounds = boundsArray[i];
        if(value < bounds.min || value > bounds.max) {
            pass = false;
            break;
        }
    }
    return pass;
}
/*
 Checks an array of values against an array of
 defined bounds and returns true if all values
 are within their bounds and false if any value
 is out of bounds
*/
Checks an array of values against an array of
defined bounds and returns true if all values
are within their bounds and false if any value
is out of bounds
Checks an array of values against an array of defined bounds and returns true if all values are within their bounds and false if any value is out of bounds
function areWithin(valueArray, boundsArray) {
    var pass = true;
    for(var i = 0, len = valueArray.length; i < len; i++) {
        var value = valueArray[i];
        var bounds = boundsArray[i];
        if(value < bounds.min || value > bounds.max) {
            pass = false;
            break;
        }
    }
    return pass;
}
function areWithin ( valueArray , boundsArray ) { var pass = true ; for ( var i = 0 , len = valueArray . length ; i < len ; i ++ ) { var value = valueArray [ i ] ; var bounds = boundsArray [ i ] ; if ( value < bounds . min || value > bounds . max ) { pass = false ; break ; } } return pass ; }
Checks an array of values against an array of
defined bounds and returns true if all values
are within their bounds and false if any value
is out of bounds
Checks an array of values against an array of defined bounds and returns true if all values are within their bounds and false if any value is out of bounds